Spaces:
Paused
Paused
Commit
·
ada8a63
1
Parent(s):
ba01c8a
Auto-commit: app.py updated
Browse files
app.py
CHANGED
|
@@ -1,32 +1,13 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
"""
|
| 3 |
-
OpenManus - HuggingFace Spaces Compatible Version
|
| 4 |
-
"""
|
| 5 |
-
|
| 6 |
import gradio as gr
|
| 7 |
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
def
|
| 10 |
-
"
|
| 11 |
-
|
| 12 |
-
def signup(mobile, name, password, confirm):
|
| 13 |
-
if not all([mobile, name, password, confirm]):
|
| 14 |
-
return "Please fill all fields"
|
| 15 |
-
if password != confirm:
|
| 16 |
-
return "Passwords don't match"
|
| 17 |
-
return f"Account created for {name}!"
|
| 18 |
-
|
| 19 |
-
def login(mobile, password):
|
| 20 |
-
if not mobile or not password:
|
| 21 |
-
return "Please enter mobile and password"
|
| 22 |
-
return "Login successful!"
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
return history, ""
|
| 27 |
-
response = f"OpenManus AI: I received '{message}'. I have 200+ models ready!"
|
| 28 |
-
history.append((message, response))
|
| 29 |
-
return history, ""
|
| 30 |
|
| 31 |
with gr.Blocks(title="OpenManus") as app:
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def greet(name):
|
| 4 |
+
return f"Hello {name}! OpenManus Platform is running with 200+ AI models!"
|
| 5 |
|
| 6 |
+
def login(mobile, password):
|
| 7 |
+
return f"✅ Login successful for {mobile}!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
def signup(mobile, name, password):
|
| 10 |
+
return f"✅ Account created for {name} ({mobile})!"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
with gr.Blocks(title="OpenManus") as app:
|
| 13 |
|