akhatr-phyniks commited on
Commit
2ed4440
·
verified ·
1 Parent(s): 7c34d5d

still fixing build error

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -183,8 +183,8 @@ auth_username = os.getenv("AUTH_USERNAME", "admin")
183
  auth_password = os.getenv("AUTH_PASSWORD", "admin")
184
 
185
  # Launch with authentication
186
- demo.launch(
187
- server_name="0.0.0.0", # Required for Hugging Face Spaces
188
- server_port=7860, # Default Gradio port
189
- auth=(auth_username, auth_password) if auth_username and auth_password else None
190
  )
 
183
  auth_password = os.getenv("AUTH_PASSWORD", "admin")
184
 
185
  # Launch with authentication
186
+ demo.queue().launch(
187
+ share=True, # Required for Hugging Face Spaces
188
+ auth=(auth_username, auth_password) if auth_username and auth_password else None,
189
+ ssr_mode=False
190
  )