fengtc commited on
Commit
0b0265a
1 Parent(s): 0b0c1d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.2)
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)