使用官方示例web_demo.py时,gradio页面报错,无法显示模型应答结果 #488
Closed
xinaiwunai
started this conversation in
Bad Case
Replies: 2 comments 2 replies
-
确定你的gradio不是4.x版本的么,我们检查一下 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
通过命令启动成功,如下所示:
也成功弹出浏览器并进入示例页面,任意输入一句话,提交后。能监控到请求得到了正确的响应,如下图:

但是页面却出现js错误,显示不出应答结果。
具体情况是:大模型响应的第一个字“你”会正常出现,然后试图显示下一个字“好”时就直接报错,同时第一个字“你”也一起消失了。且后续也无法提交新的输入。
浏览器监控console提示如下js错误:
Beta Was this translation helpful? Give feedback.
All reactions