Salman Abjam commited on
Commit
bdb29e1
·
1 Parent(s): b337433

Fix: Change server_name to 0.0.0.0 for HF Spaces

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -337,11 +337,10 @@ def main():
337
 
338
  # Launch the app
339
  demo.launch(
340
- server_name="127.0.0.1", # Local only for testing
341
- server_port=None, # Auto-find available port
342
- share=False, # Set to True for temporary public link
343
- show_error=True,
344
- inbrowser=True # Auto-open in browser
345
  )
346
 
347
 
 
337
 
338
  # Launch the app
339
  demo.launch(
340
+ server_name="0.0.0.0", # Allow external connections (required for HF Spaces)
341
+ server_port=7860, # HF Spaces default port
342
+ share=False,
343
+ show_error=True
 
344
  )
345
 
346