belimy commited on
Commit
df6e8a1
1 Parent(s): ede30c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def chat(p, qid, uid):
45
  # chatbot.append((txt, response))
46
  # chatbot.append((response))
47
  # print(history)
48
- return response
49
  # return chatbot, context
50
 
51
 
@@ -83,7 +83,7 @@ title = '情感咨询导师Alice'
83
  description = "<div align='center'> 如果你面临选择哪个♂或♀的问题😍,我将从客观的过来人的角度给你答案✔,假设你的两个追求者分别是小A,小B,让我们有礼貌的从say hi开始:</div>"
84
  iface = gr.Interface(fn=chat,
85
  inputs=["text", "text", "text"],
86
- outputs=["text"],
87
  title=title,
88
  description=description)
89
 
 
45
  # chatbot.append((txt, response))
46
  # chatbot.append((response))
47
  # print(history)
48
+ return ["text",response]
49
  # return chatbot, context
50
 
51
 
 
83
  description = "<div align='center'> 如果你面临选择哪个♂或♀的问题😍,我将从客观的过来人的角度给你答案✔,假设你的两个追求者分别是小A,小B,让我们有礼貌的从say hi开始:</div>"
84
  iface = gr.Interface(fn=chat,
85
  inputs=["text", "text", "text"],
86
+ outputs=["text","text"],
87
  title=title,
88
  description=description)
89