Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,11 +13,11 @@ def summarize(text):
|
|
| 13 |
return input
|
| 14 |
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
-
text = gr.Textbox(label="
|
| 17 |
output = gr.Textbox(label="Output")
|
| 18 |
btn = gr.Button("Abstract")
|
| 19 |
btn.click(fn=summarize, inputs=text, outputs=[output])
|
| 20 |
|
| 21 |
|
| 22 |
-
|
| 23 |
|
|
|
|
| 13 |
return input
|
| 14 |
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
+
text = gr.Textbox(label="text", lines=10, placeholder="Enter text here")
|
| 17 |
output = gr.Textbox(label="Output")
|
| 18 |
btn = gr.Button("Abstract")
|
| 19 |
btn.click(fn=summarize, inputs=text, outputs=[output])
|
| 20 |
|
| 21 |
|
| 22 |
+
demo.launch()
|
| 23 |
|