Spaces:
Paused
Paused
Commit
Β·
7e1b35a
1
Parent(s):
93914c4
Fix: Docker-compatible version with minimal requirements to resolve HF Spaces conflicts
Browse files
app.py
CHANGED
|
@@ -72,48 +72,7 @@ def main():
|
|
| 72 |
</div>
|
| 73 |
""")
|
| 74 |
|
| 75 |
-
|
| 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()
|