bruAristimunha commited on
Commit
1e7e54b
·
verified ·
1 Parent(s): 95b4e06

Bind to 0.0.0.0:7860 (HF Spaces sandbox blocks localhost)

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -269,4 +269,6 @@ def build_app() -> gr.Blocks:
269
 
270
 
271
  if __name__ == "__main__":
272
- build_app().launch()
 
 
 
269
 
270
 
271
  if __name__ == "__main__":
272
+ # On HF Spaces the sandbox blocks localhost-only binds; expose on 0.0.0.0
273
+ # so the front-door proxy can reach us. Locally this still works fine.
274
+ build_app().launch(server_name="0.0.0.0", server_port=7860)