Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,6 +45,8 @@ with gr.Blocks(title="Article → Highlights") as demo:
|
|
| 45 |
out = gr.Textbox(lines=8, label="Highlights")
|
| 46 |
btn.click(summarize_fn, [inp, max_new, min_new, beams, lp], out)
|
| 47 |
|
| 48 |
-
|
|
|
|
| 49 |
if __name__ == "__main__":
|
| 50 |
demo.launch()
|
|
|
|
|
|
| 45 |
out = gr.Textbox(lines=8, label="Highlights")
|
| 46 |
btn.click(summarize_fn, [inp, max_new, min_new, beams, lp], out)
|
| 47 |
|
| 48 |
+
# works across recent Gradio versions
|
| 49 |
+
demo.queue() # or just remove this line entirely
|
| 50 |
if __name__ == "__main__":
|
| 51 |
demo.launch()
|
| 52 |
+
|