Spaces:
Runtime error
Runtime error
File size: 288 Bytes
092dcc1 6779ad6 092dcc1 6779ad6 058dbba 6779ad6 092dcc1 058dbba 092dcc1 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from inference import Question_and_Answer_System
qa = Question_and_Answer_System()
def ask_question(question):
prediction = qa.answer_question(question)
return prediction
iface = gr.Interface(fn=ask_question, inputs="text", outputs="text")
iface.launch() |