MT-1-Axolotl commited on
Commit
7ae7da8
·
verified ·
1 Parent(s): 0488003

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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()