Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def summarize_file(file):
|
|
| 71 |
return f"**Chars**: {len(text)}\n**Time**: {time.time()-start:.2f}s\n\n" + "\n\n".join(summaries)
|
| 72 |
|
| 73 |
demo = gr.Interface(
|
| 74 |
-
fn=summarize_file, inputs=gr.File(label="π Any File", type="
|
| 75 |
outputs=gr.Textbox(label="π Summary"),
|
| 76 |
title="Fast Summarizer", description="300,000+ chars in ~10β15s (CPU)"
|
| 77 |
)
|
|
|
|
| 71 |
return f"**Chars**: {len(text)}\n**Time**: {time.time()-start:.2f}s\n\n" + "\n\n".join(summaries)
|
| 72 |
|
| 73 |
demo = gr.Interface(
|
| 74 |
+
fn=summarize_file, inputs=gr.File(label="π Any File", type="binary"),
|
| 75 |
outputs=gr.Textbox(label="π Summary"),
|
| 76 |
title="Fast Summarizer", description="300,000+ chars in ~10β15s (CPU)"
|
| 77 |
)
|