Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
def things(text):
|
| 7 |
-
return
|
| 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()
|