diagaiwei commited on
Commit
9c6d7e1
1 Parent(s): 1afbffa

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -44,11 +44,19 @@ def chat(question):
44
  # history.append((message, response))
45
  return responses
46
 
 
 
 
 
 
 
47
  chatbot = gr.Chatbot().style(color_map=("green", "pink"))
48
  demo = gr.Interface(
49
  chat,
50
  inputs=gr.Textbox(lines=2, placeholder="输入你的问题"),
 
 
51
  outputs =["text", "text","text","text","text"]
52
  )
53
  if __name__ == "__main__":
54
- demo.launch()
 
44
  # history.append((message, response))
45
  return responses
46
 
47
+
48
+ title = "ColBERT QA trained on the Chinese cmedqa-v2 dataset 基于ColBERT的中文健康问题QA模型"
49
+ description = "用中文输入健康问题,比如 '高血压吃什么药物?', 程序返回5条跟问题最相关的回答。"
50
+
51
+
52
+
53
  chatbot = gr.Chatbot().style(color_map=("green", "pink"))
54
  demo = gr.Interface(
55
  chat,
56
  inputs=gr.Textbox(lines=2, placeholder="输入你的问题"),
57
+ title = title,
58
+ description=description,
59
  outputs =["text", "text","text","text","text"]
60
  )
61
  if __name__ == "__main__":
62
+ demo.launch(share=True)