xy4286 commited on
Commit
451c631
·
verified ·
1 Parent(s): eb32637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,12 +1,10 @@
1
 
2
 
 
3
  import gradio as gr
4
 
 
5
 
6
- gr.Interface.load(
7
- "huggingface/xy4286/pegasus-samsum",
8
- inputs=gr.Textbox(lines=5, label="Input Text"),
9
-
10
- ).launch()
11
 
12
 
 
1
 
2
 
3
+
4
  import gradio as gr
5
 
6
+ demo = gr.load("xy4286/pegasus-samsum", src="models")
7
 
8
+ demo.launch()
 
 
 
 
9
 
10