minotrey commited on
Commit
ad395bd
·
1 Parent(s): d4df633

Fix Hugging Face Spaces compatibility

Browse files

- Fix indentation error in app.launch()
- Set share=True for Hugging Face Spaces environment
- Remove server_name and server_port (auto-configured)
- Disable ssr_mode to prevent locale errors

Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1211,9 +1211,8 @@ def create_app():
1211
  if __name__ == "__main__":
1212
  app = create_app()
1213
  app.launch(
1214
- server_name="0.0.0.0",
1215
- server_port=7860,
1216
- share=False,
1217
  show_error=True,
1218
- auth=auth_fn
 
1219
  )
 
1211
  if __name__ == "__main__":
1212
  app = create_app()
1213
  app.launch(
1214
+ share=True,
 
 
1215
  show_error=True,
1216
+ auth=auth_fn,
1217
+ ssr_mode=False
1218
  )