Spaces:
Runtime error
Runtime error
Salman Abjam commited on
Commit ·
bdb29e1
1
Parent(s): b337433
Fix: Change server_name to 0.0.0.0 for HF Spaces
Browse files
app.py
CHANGED
|
@@ -337,11 +337,10 @@ def main():
|
|
| 337 |
|
| 338 |
# Launch the app
|
| 339 |
demo.launch(
|
| 340 |
-
server_name="
|
| 341 |
-
server_port=
|
| 342 |
-
share=False,
|
| 343 |
-
show_error=True
|
| 344 |
-
inbrowser=True # Auto-open in browser
|
| 345 |
)
|
| 346 |
|
| 347 |
|
|
|
|
| 337 |
|
| 338 |
# Launch the app
|
| 339 |
demo.launch(
|
| 340 |
+
server_name="0.0.0.0", # Allow external connections (required for HF Spaces)
|
| 341 |
+
server_port=7860, # HF Spaces default port
|
| 342 |
+
share=False,
|
| 343 |
+
show_error=True
|
|
|
|
| 344 |
)
|
| 345 |
|
| 346 |
|