Jellyfish042 commited on
Commit
49eb0e6
·
1 Parent(s): 91f5d7c

Minor improvements: remove redundant visible parameter and add share=False

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -320,7 +320,7 @@ with gr.Blocks(
320
  with gr.Row():
321
  with gr.Column():
322
  output_html = gr.HTML(label="Visualization")
323
- download_btn = gr.DownloadButton("📥 Download HTML", visible=True)
324
 
325
  # Event handlers
326
  news_btn.click(fn=lambda: EXAMPLE_NEWS, outputs=[text_input])
@@ -373,4 +373,4 @@ with gr.Blocks(
373
 
374
 
375
  if __name__ == "__main__":
376
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
320
  with gr.Row():
321
  with gr.Column():
322
  output_html = gr.HTML(label="Visualization")
323
+ download_file = gr.File(label="📥 Download HTML", visible=False)
324
 
325
  # Event handlers
326
  news_btn.click(fn=lambda: EXAMPLE_NEWS, outputs=[text_input])
 
373
 
374
 
375
  if __name__ == "__main__":
376
+ demo.launch(server_name="0.0.0.0", server_port=7860, share=False)