JuanLastra commited on
Commit
e507a68
·
verified ·
1 Parent(s): 46bbd66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,12 +1,12 @@
1
- import gradio as gr
2
  from transformers import pipeline
3
 
4
- equal = pipeline("summariztion", model="facebook/bart-large-cnn")
5
 
6
- def things(text):
7
- return equal(text)
8
 
9
- testing = gr.Interface(fn=things, inputs="text", outputs="text")
10
- testing.launch()
11
 
12
  # done by Juan Lastra
 
1
+ import gradio as gr
2
  from transformers import pipeline
3
 
4
+ sum = pipeline("summarization", model="facebook/bart-large-cnn")
5
 
6
+ def stuff(text):
7
+ return sum(text)
8
 
9
+ demo = gr.Interface(fn=stuff, inputs="text", outputs="text")
10
+ demo.launch()
11
 
12
  # done by Juan Lastra