Spaces:
Sleeping
Sleeping
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") | |