Spaces:
Sleeping
Sleeping
File size: 384 Bytes
ef7264e |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from transformers import pipeline
title = 'BG Question Answering APP'
context = "My name is Bazed Gul. I love tea and drink it regularly"
question = "What do I love?"
question_answerer = pipeline("question-answering")
interface = gr.Interface.from_pipeline(question_answerer,
title = title,
theme = "grass",
examples = [[context, question]]).launch() |