WQW commited on
Commit
feba8e7
1 Parent(s): 62b1164

qa任务demo

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def question_answer(context, question):
4
+ pass # Implement your question-answering model here...
5
+ return ('答案返回', 'hello')
6
+
7
+ gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=["textbox", "text"],
8
+ examples=[['该楼盘的住宅户型60平到239平价格900万到4000万,产品是开间,一居,二居,三居,户型总共17种。园区整体楼间距可达约230米-260米。精装交付。园区整体楼间距可达约230米-260米。项目共有1类产品类型分别为:平层。','该楼盘的装修交付标准是什么?']]
9
+ ).launch()
10
+ #).launch(share=True)