Spaces:
Sleeping
Sleeping
File size: 606 Bytes
2c47a95 38dd1bd 2c47a95 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from transformers import pipeline
title = 'Question Answering'
context = "Professor Geoffrey Hinton told BBC Newsnight that a benefits reform giving fixed amounts of cash to every citizen would be needed because he was “very worried about AI taking lots of mundane jobs”."
question = "Why Geoffrey Hinton is worried about AI on human jobs?"
question_answerer = pipeline("question-answering", model='Hemg/Question-answering')
interface = gr.Interface.from_pipeline(question_answerer,
title = title,
theme = "peach",
examples = [[context, question]]).launch()
|