GaiZhenbiao / ChuanhuChatGPT

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT
GNU General Public License v3.0
15.07k stars 2.28k forks source link

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

Open jhy549 opened 3 months ago

jhy549 commented 3 months ago

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

错误表现

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

复现操作

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

错误日志

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

运行环境

帮助解决

补充说明

No response

jhy549 commented 3 months ago
image

界面: image

jhy549 commented 3 months ago

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

Keldos-Li commented 3 months ago

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

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

对造成的不便深感歉意😞

JaceJu-frog commented 2 months ago

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

Keldos-Li commented 2 months ago

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

link https://github.com/gradio-app/gradio/issues/8006