question-gen / app.py
Akbartus's picture
Create app.py
3e9d30c
raw
history blame
434 Bytes
# Install the dependency, i.e. gradio library once
!pip install gradio
# It is possible to download without any issues almost any model with one line of code. Choose any model, get its link, and add before it "huggingface/".
# import gradio and define it as a variable name
import gradio as gr
# load interface related to gpt2 and launch it.
gr.Interface.load("huggingface/mrm8488/t5-base-finetuned-question-generation-ap").launch()