GChilukala commited on
Commit
781a216
Β·
verified Β·
1 Parent(s): b6da785

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -1667,10 +1667,22 @@ def main():
1667
  print("🌍 Multi-language support active!")
1668
  print("=" * 50)
1669
 
1670
- # Create and launch the app
1671
  app = create_gradio_app()
1672
- app.launch(mcp_server=True)
 
 
 
 
 
 
 
 
 
 
 
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
+