Spaces:
Sleeping
Sleeping
Bind to 0.0.0.0:7860 (HF Spaces sandbox blocks localhost)
Browse files
app.py
CHANGED
|
@@ -269,4 +269,6 @@ def build_app() -> gr.Blocks:
|
|
| 269 |
|
| 270 |
|
| 271 |
if __name__ == "__main__":
|
| 272 |
-
|
|
|
|
|
|
|
|
|
| 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)
|