Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 输出内容包含数学公式,无法以LaTeX 格式正常显示 #1076

Closed
1 of 2 tasks
chaoyi1987 opened this issue Mar 13, 2024 · 5 comments
Closed
1 of 2 tasks
Labels
invalid This doesn't seem right

Comments

@chaoyi1987
Copy link

这个bug是否已存在现有issue了?

  • 我确认没有已有issue,且已阅读常见问题

错误表现

当我输入问题:请详细解释一下正态分布的概率密度函数的意义,尽可能举例说明,数学公式使用$$,返回如下内容
1710322329413
我希望返回的样式是如下的:
1710322414848

复现操作

输入问题:请详细解释一下正态分布的概率密度函数的意义,尽可能举例说明,数学公式使用$$

错误日志

No response

运行环境

  • OS:
  • Browser:
  • Gradio version:
  • Python version:

帮助解决

  • 我愿意协助解决!

补充说明

No response

@chaoyi1987 chaoyi1987 added the bug Something isn't working label Mar 13, 2024
@Keldos-Li
Copy link
Collaborator

你好,我这里测试是完全正常的:
image

请你确认一下配置中的 设置 LaTeX 渲染参数 选项,如果可能,也可以导出聊天记录的json文件以供我们排查。

@Keldos-Li Keldos-Li added invalid This doesn't seem right and removed bug Something isn't working labels Mar 14, 2024
@Keldos-Li
Copy link
Collaborator

如果仍有问题,请继续回复。

@chaoyi1987
Copy link
Author

1723393883355
这个是config.json配置文件的截图
正态分布讲解.json
这个是我导出聊天记录的json文件
1723393953972
latex显示还是有异常,我现在用的版本是当前最新的版本

@Keldos-Li
Copy link
Collaborator

是的,从20240618那个版本开始又禁用了latex渲染,这个问题由于gradio的bug之前一直没有解决,我应该在release note里提一句的,抱歉!

see also #1102

@chaoyi1987
Copy link
Author

那好像这个问题确实挺久了,也不知道啥时候能修复这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants