Jimmy0866 commited on
Commit
4837239
·
verified ·
1 Parent(s): 5dac898

bug fixed

Files changed (1) hide show
  1. app.py +2 -1
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)