sonyps1928 commited on
Commit
06e1ad9
·
1 Parent(s): ad32177

update file

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -189,4 +189,10 @@ with gr.Blocks(title="Multi-Model Text Generation Server") as demo:
189
  auth_config = ("admin", ADMIN_PASSWORD) if ADMIN_PASSWORD else None
190
 
191
  if __name__ == "__main__":
192
- demo.launch(auth=auth_config)
 
 
 
 
 
 
 
189
  auth_config = ("admin", ADMIN_PASSWORD) if ADMIN_PASSWORD else None
190
 
191
  if __name__ == "__main__":
192
+ demo.launch(
193
+ auth=auth_config,
194
+ share=True, # Required for Spaces if localhost isn't accessible
195
+ server_name="0.0.0.0",
196
+ server_port=7860,
197
+ ssr_mode=False # Optional: disable server-side rendering to avoid Svelte i18n error
198
+ )