Update app.py
Browse files
app.py
CHANGED
|
@@ -116,15 +116,11 @@ def summarize_and_display(text):
|
|
| 116 |
return summary
|
| 117 |
|
| 118 |
|
| 119 |
-
def start_summarization(text):
|
| 120 |
-
summary = summarize_and_display(text)
|
| 121 |
-
gr.update(summary)
|
| 122 |
-
|
| 123 |
-
|
| 124 |
iface = gr.Interface(
|
| 125 |
-
fn=
|
| 126 |
inputs=[
|
| 127 |
gr.Textbox(label="Enter text to summarize:"),
|
|
|
|
| 128 |
gr.Button(label="Summarize"),
|
| 129 |
],
|
| 130 |
outputs=gr.Textbox(label="Summary:"),
|
|
|
|
| 116 |
return summary
|
| 117 |
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
iface = gr.Interface(
|
| 120 |
+
fn=summarize_and_display,
|
| 121 |
inputs=[
|
| 122 |
gr.Textbox(label="Enter text to summarize:"),
|
| 123 |
+
gr.Label(label="Summarize"),
|
| 124 |
gr.Button(label="Summarize"),
|
| 125 |
],
|
| 126 |
outputs=gr.Textbox(label="Summary:"),
|