Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,5 +6,8 @@ pipe = pipeline('summarization')
|
|
| 6 |
def summary(input):
|
| 7 |
value = pipe(input)
|
| 8 |
return value[0]['summary_text']
|
| 9 |
-
a = gr.Interface(fn=summary,
|
|
|
|
|
|
|
|
|
|
| 10 |
a.launch()
|
|
|
|
| 6 |
def summary(input):
|
| 7 |
value = pipe(input)
|
| 8 |
return value[0]['summary_text']
|
| 9 |
+
a = gr.Interface(fn=summary,
|
| 10 |
+
inputs= gr.Textbox(lines=5, label='Enter Text'),
|
| 11 |
+
outputs = gr.Textbox(label='Summary'),
|
| 12 |
+
title = 'Text Summarizer')
|
| 13 |
a.launch()
|