Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -485,18 +485,24 @@ if __name__ == "__main__":
|
|
| 485 |
print(f"IQ-TREE: {'✅' if iqtree_available else '❌'}")
|
| 486 |
|
| 487 |
print("\n🚀 Launching with API enabled...")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 488 |
|
| 489 |
# Create and launch interface
|
| 490 |
iface = create_interface()
|
| 491 |
|
| 492 |
-
# Launch with
|
| 493 |
iface.launch(
|
| 494 |
-
share=False,
|
| 495 |
-
server_name="0.0.0.0",
|
| 496 |
-
server_port=
|
| 497 |
show_error=True,
|
| 498 |
-
show_api=True,
|
| 499 |
-
quiet=False
|
|
|
|
|
|
|
| 500 |
)
|
| 501 |
|
| 502 |
except Exception as e:
|
|
|
|
| 485 |
print(f"IQ-TREE: {'✅' if iqtree_available else '❌'}")
|
| 486 |
|
| 487 |
print("\n🚀 Launching with API enabled...")
|
| 488 |
+
print("Access URLs:")
|
| 489 |
+
print(" - Local: http://localhost:7861")
|
| 490 |
+
print(" - Network: http://0.0.0.0:7861")
|
| 491 |
+
print(" - API Docs: http://localhost:7861/docs")
|
| 492 |
|
| 493 |
# Create and launch interface
|
| 494 |
iface = create_interface()
|
| 495 |
|
| 496 |
+
# Launch with broader accessibility
|
| 497 |
iface.launch(
|
| 498 |
+
share=False, # Set to True if you want public sharing
|
| 499 |
+
server_name="0.0.0.0", # Allow external connections
|
| 500 |
+
server_port=7861, # Your current port
|
| 501 |
show_error=True,
|
| 502 |
+
show_api=True,
|
| 503 |
+
quiet=False,
|
| 504 |
+
inbrowser=True, # Try to open browser automatically
|
| 505 |
+
prevent_thread_lock=False
|
| 506 |
)
|
| 507 |
|
| 508 |
except Exception as e:
|