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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -648,7 +648,6 @@ _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=_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
  )
 
648
  app.launch(
649
  server_name="0.0.0.0",
650
  server_port=7860,
651
+ share=_on_spaces,
652
+ show_error=True
 
653
  )