Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,14 +10,12 @@ def summarize_text(text):
|
|
| 10 |
return summary[0]['summary_text']
|
| 11 |
|
| 12 |
#gradio interface
|
| 13 |
-
|
| 14 |
demo = gr.Interface(
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
|
| 20 |
-
summarize_button.click(summarize_text, inputs=text_input, outputs=output_text)
|
| 21 |
)
|
| 22 |
|
| 23 |
# Launch the app
|
|
|
|
| 10 |
return summary[0]['summary_text']
|
| 11 |
|
| 12 |
#gradio interface
|
|
|
|
| 13 |
demo = gr.Interface(
|
| 14 |
+
fn=summarize_text,
|
| 15 |
+
inputs=gr.Textbox(label="Enter your text:", lines=10, placeholder="Paste a paragraph here..."),
|
| 16 |
+
outputs=gr.Textbox(label="Summarized Text", lines=3),
|
| 17 |
+
title="Text Summarization App",
|
| 18 |
|
|
|
|
| 19 |
)
|
| 20 |
|
| 21 |
# Launch the app
|