Update app.py
Browse files
app.py
CHANGED
|
@@ -1667,10 +1667,22 @@ def main():
|
|
| 1667 |
print("π Multi-language support active!")
|
| 1668 |
print("=" * 50)
|
| 1669 |
|
| 1670 |
-
# Create
|
| 1671 |
app = create_gradio_app()
|
| 1672 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1673 |
|
| 1674 |
|
| 1675 |
if __name__ == "__main__":
|
| 1676 |
-
main()
|
|
|
|
|
|
| 1667 |
print("π Multi-language support active!")
|
| 1668 |
print("=" * 50)
|
| 1669 |
|
| 1670 |
+
# Create the Gradio app
|
| 1671 |
app = create_gradio_app()
|
| 1672 |
+
|
| 1673 |
+
# π IMPORTANT: bind to the port the platform gives us
|
| 1674 |
+
port = int(os.environ.get("PORT", 7860))
|
| 1675 |
+
|
| 1676 |
+
# Launch with explicit host + port, and disable SSR to avoid platform issues
|
| 1677 |
+
app.launch(
|
| 1678 |
+
server_name="0.0.0.0",
|
| 1679 |
+
server_port=port,
|
| 1680 |
+
mcp_server=True,
|
| 1681 |
+
ssr_mode=False, # your log said SSR (experimental) β turn it off
|
| 1682 |
+
show_api=False # optional, keeps it clean
|
| 1683 |
+
)
|
| 1684 |
|
| 1685 |
|
| 1686 |
if __name__ == "__main__":
|
| 1687 |
+
main()
|
| 1688 |
+
|