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]: gradio4.26输出LaTeX出错 #1102

Open
2 tasks done
jhy549 opened this issue Apr 18, 2024 · 5 comments
Open
2 tasks done

[Bug]: gradio4.26输出LaTeX出错 #1102

jhy549 opened this issue Apr 18, 2024 · 5 comments
Labels
bug Something isn't working 📌 confirmed Known issue, handling / will fix 🔌 dependency 依赖库导致的问题

Comments

@jhy549
Copy link

jhy549 commented Apr 18, 2024

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

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

错误表现

chat界面响应回答的时候,一开始是有流式输出,还没输出完,窗口就变成一片空白
image

复现操作

1.正常完成本地部署2. 选取GPT4-turbo模型,正确填写API 3.在对话框中要求 ChatGPT"以LaTex格式输出三角函数"4.ChatGPT
输出部分内容后回复页面空白

错误日志

终端中显示正常回复,UI页面没有回复的内容

运行环境

  • OS: MacOS 14.4 (23E214)
  • Browser: Edge 123.0.2420.97 (正式版本) (arm64)
  • Gradio version: 4.26.0
  • Python version: 3.11.8

帮助解决

  • 我愿意协助解决!

补充说明

No response

@jhy549 jhy549 added the bug Something isn't working label Apr 18, 2024
@jhy549
Copy link
Author

jhy549 commented Apr 18, 2024

image

界面:
image

@jhy549
Copy link
Author

jhy549 commented Apr 18, 2024

经测试,是因为流式输出的内容较长,生成速度慢了前端就显示不出内容,该如何解决呢?

@Keldos-Li Keldos-Li changed the title [Bug]: Mac流式输出空白 [Bug]: gradio4.26输出LaTeX出错 Apr 18, 2024
@Keldos-Li Keldos-Li added 🔌 dependency 依赖库导致的问题 📌 confirmed Known issue, handling / will fix labels Apr 18, 2024
@Keldos-Li
Copy link
Collaborator

hi,这个错误我们已经确认过,是LaTeX输出导致的UI问题,来源是Gradio更新4版本后出现的。

我们已经把问题提交给了Gradio,等他们修复中……目前如果要避免错误,只能暂时禁用latex渲染,或者回到川虎Chat的上一个版本(记得重新安装依赖)。

对造成的不便深感歉意😞

@JaceJu-frog
Copy link

你好维护者,我用gradio 3.43.2 和gradio-client 0.5.0也出现如图所示的错误,请问回退到上一个版本是 20240310

@Keldos-Li
Copy link
Collaborator

@JaceJu-frog 是的,上一个版本是 20240310

link gradio-app/gradio#8006

Keldos-Li added a commit that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📌 confirmed Known issue, handling / will fix 🔌 dependency 依赖库导致的问题
Projects
None yet
Development

No branches or pull requests

3 participants