ailearning / app.py
WQW's picture
qa任务demo
feba8e7
raw
history blame contribute delete
626 Bytes
import gradio as gr
def question_answer(context, question):
pass # Implement your question-answering model here...
return ('答案返回', 'hello')
gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=["textbox", "text"],
examples=[['该楼盘的住宅户型60平到239平价格900万到4000万,产品是开间,一居,二居,三居,户型总共17种。园区整体楼间距可达约230米-260米。精装交付。园区整体楼间距可达约230米-260米。项目共有1类产品类型分别为:平层。','该楼盘的装修交付标准是什么?']]
).launch()
#).launch(share=True)