Speedofmastery commited on
Commit
7e1b35a
Β·
1 Parent(s): 93914c4

Fix: Docker-compatible version with minimal requirements to resolve HF Spaces conflicts

Browse files
Files changed (1) hide show
  1. app.py +2 -43
app.py CHANGED
@@ -72,48 +72,7 @@ def main():
72
  </div>
73
  """)
74
 
75
- try:
76
- print(f"⚠️ Import error: {e}")
77
- try:
78
- # Fallback to basic Gradio interface
79
- import gradio as gr
80
-
81
- with gr.Blocks(title="OpenManus - Starting...") as demo:
82
- gr.HTML(
83
- """
84
- <div style="text-align: center; padding: 50px;">
85
- <h1>πŸ€– OpenManus Platform</h1>
86
- <h2>βœ… Successfully Deployed!</h2>
87
- <p>The complete AI platform is initializing...</p>
88
- <p><strong>Platform Features:</strong></p>
89
- <ul style="text-align: left; display: inline-block;">
90
- <li>πŸ” Mobile Authentication System</li>
91
- <li>🧠 200+ AI Models (Qwen, DeepSeek, etc.)</li>
92
- <li>πŸ–ΌοΈ Image & Speech Processing</li>
93
- <li>☁️ Cloudflare Integration Ready</li>
94
- <li>🌍 Arabic-English Support</li>
95
- </ul>
96
- <p><em>System is working! Deployment successful.</em></p>
97
- </div>
98
- """
99
- )
100
-
101
- demo.launch(server_name="0.0.0.0", server_port=7860, share=False)
102
-
103
- except Exception as e2:
104
- print(f"❌ Critical error: {e2}")
105
- # Last resort
106
- print("OpenManus Platform - Basic Mode")
107
- print("βœ… Deployment successful!")
108
- print("πŸ”§ System starting in minimal mode...")
109
-
110
- # Keep the process alive
111
- import time
112
-
113
- while True:
114
- time.sleep(60)
115
- print("⏱️ OpenManus running...")
116
-
117
 
118
  if __name__ == "__main__":
119
- main()
 
72
  </div>
73
  """)
74
 
75
+ app.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  if __name__ == "__main__":
78
+ main()