Update app.py
Browse files
app.py
CHANGED
@@ -40,12 +40,12 @@ def predict(message, history):
|
|
40 |
partial_message = ""
|
41 |
for chunk in response:
|
42 |
if len(chunk[0]) != 0:
|
43 |
-
time.sleep(0.
|
44 |
partial_message = partial_message + chunk[0]
|
45 |
yield partial_message
|
46 |
|
47 |
langchain.llm_cache = InMemoryCache()
|
48 |
gr.ChatInterface(predict, theme=gr.themes.Default(),
|
49 |
textbox=gr.Textbox(placeholder="请输入您的问题...", container=False, scale=7),
|
50 |
-
title="欢迎使用智造云AI
|
51 |
examples=["老师反馈文件传输慢怎么处理?", "用户作业同步状态速度为0应该联系谁?"]).queue().launch(debug=True)
|
|
|
40 |
partial_message = ""
|
41 |
for chunk in response:
|
42 |
if len(chunk[0]) != 0:
|
43 |
+
time.sleep(0.1)
|
44 |
partial_message = partial_message + chunk[0]
|
45 |
yield partial_message
|
46 |
|
47 |
langchain.llm_cache = InMemoryCache()
|
48 |
gr.ChatInterface(predict, theme=gr.themes.Default(),
|
49 |
textbox=gr.Textbox(placeholder="请输入您的问题...", container=False, scale=7),
|
50 |
+
title="欢迎使用智造云AI助手",
|
51 |
examples=["老师反馈文件传输慢怎么处理?", "用户作业同步状态速度为0应该联系谁?"]).queue().launch(debug=True)
|