Wootang01 commited on
Commit
0e17d27
·
1 Parent(s): a3ae2fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,6 @@
1
  import gradio as gr
 
2
 
3
- gr.Interface.load('huggingface/gpt2').launch()
 
 
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
 
4
+ pipe = pipeline("text-generation")
5
+
6
+ gr.Interface.from_pipeline(pipe).launch()