qa_arun / app.py
arunslb123's picture
Update app.py
f1f71c3
import gradio as gr
# from transformers import pipeline
gr.Interface.load("models/arunslb123/bert").launch()
# model_checkpoint = "arunslb123/bert"
# question_answerer = pipeline("question-answering", model=model_checkpoint)
# def answer_question(context, question):
# answer = question_answerer(question=question, context=context)
# return answer['answer']
# iface = gr.Interface(fn=answer_question,
# inputs=["textbox", "textbox"],
# outputs="text")