File size: 431 Bytes
3ff1f64
 
d1872ff
3ff1f64
39ba4a7
1
2
3
4
5
import gradio as gr

examples = [["answer: 1948 context: The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948."], ["answer: Tom Kilburn context: The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948."]]

gr.Interface.load("huggingface/mrm8488/t5-base-finetuned-question-generation-ap", title="Question Generator" ,examples=examples).launch();