Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Install the dependency, i.e. gradio library once
|
2 |
+
!pip install gradio
|
3 |
+
|
4 |
+
# 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/".
|
5 |
+
# import gradio and define it as a variable name
|
6 |
+
import gradio as gr
|
7 |
+
# load interface related to gpt2 and launch it.
|
8 |
+
gr.Interface.load("huggingface/mrm8488/t5-base-finetuned-question-generation-ap").launch()
|