lossLopes commited on
Commit
2595b3e
·
1 Parent(s): f521d1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
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=start_summarization,
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:"),