Speedofmastery commited on
Commit
9d52707
·
1 Parent(s): 414be40

Auto-commit: app.py updated

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -648,4 +648,22 @@ with gr.Blocks(
648
  """)
649
 
650
  if __name__ == "__main__":
651
- app.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  """)
649
 
650
  if __name__ == "__main__":
651
+ logger.info("🚀 Launching OpenManus Platform...")
652
+
653
+ try:
654
+ # Initialize database
655
+ init_database()
656
+
657
+ # Launch with Linux-optimized settings
658
+ app.launch(
659
+ server_name="0.0.0.0",
660
+ server_port=7860,
661
+ share=False,
662
+ debug=False,
663
+ enable_queue=True,
664
+ show_error=True,
665
+ quiet=False
666
+ )
667
+ except Exception as e:
668
+ logger.error(f"Failed to launch application: {e}")
669
+ sys.exit(1)