CodeChamp95 commited on
Commit
e9cfb17
·
verified ·
1 Parent(s): de0a94c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -648,7 +648,7 @@ _on_spaces = os.environ.get("SPACE_ID") is not None
648
  app.launch(
649
  server_name="0.0.0.0",
650
  server_port=7860,
651
- share=False, # Disabled share to prevent the Hugging Face warning
652
  show_error=True,
653
  prevent_thread_lock=True, # stops Gradio pinging localhost — needed on HF Spaces
654
  )
 
648
  app.launch(
649
  server_name="0.0.0.0",
650
  server_port=7860,
651
+ share=_on_spaces, # Disabled share to prevent the Hugging Face warning
652
  show_error=True,
653
  prevent_thread_lock=True, # stops Gradio pinging localhost — needed on HF Spaces
654
  )