Spaces:
Sleeping
Sleeping
v6
Browse filesbug fixed
app.py
CHANGED
@@ -481,6 +481,7 @@ if __name__ == "__main__":
|
|
481 |
|
482 |
# load the examples
|
483 |
name_to_path = load_example_filenames(_here / "examples")
|
|
|
484 |
logger.info(f"Loaded {len(name_to_path)} examples")
|
485 |
|
486 |
demo = gr.Blocks(title="Document Summarization")
|
@@ -663,4 +664,4 @@ if __name__ == "__main__":
|
|
663 |
inputs=[summary_text, text_file],
|
664 |
outputs=[aggregated_summary],
|
665 |
)
|
666 |
-
demo.launch(share=args.share, debug=True)
|
|
|
481 |
|
482 |
# load the examples
|
483 |
name_to_path = load_example_filenames(_here / "examples")
|
484 |
+
default_example = next(iter(name_to_path), None)
|
485 |
logger.info(f"Loaded {len(name_to_path)} examples")
|
486 |
|
487 |
demo = gr.Blocks(title="Document Summarization")
|
|
|
664 |
inputs=[summary_text, text_file],
|
665 |
outputs=[aggregated_summary],
|
666 |
)
|
667 |
+
demo.launch(share=args.share, debug=True)
|