Sbeha001 commited on
Commit
5b66eb6
·
verified ·
1 Parent(s): a266fba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- equal = pipeline("summarization", 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()
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ sum = pipeline("summarization", model="facebook/bart-large-cnn")
5
 
6
  def things(text):
7
+ return sum(text)
8
 
9
  testing = gr.Interface(fn=things, inputs="text", outputs="text")
10
  testing.launch()