Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,16 +49,16 @@ def home():
|
|
| 49 |
@app.route('/ask', methods=['POST'])
|
| 50 |
# System Prompt - UPDATED
|
| 51 |
system_prompt = """
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
"""
|
| 63 |
|
| 64 |
# 1. Ask AI to define the action
|
|
|
|
| 49 |
@app.route('/ask', methods=['POST'])
|
| 50 |
# System Prompt - UPDATED
|
| 51 |
system_prompt = """
|
| 52 |
+
You are an OS Controller. Analyze the user request.
|
| 53 |
+
Return ONLY valid JSON.
|
| 54 |
+
Format: {"action": "action_name", "target": "target_name", "reply": "speech_text"}
|
| 55 |
+
|
| 56 |
+
Actions can be:
|
| 57 |
+
- "password": if user asks for password.
|
| 58 |
+
- "open": if user wants to open app.
|
| 59 |
+
- "lock": if user wants to lock the screen. Target is null.
|
| 60 |
+
- "shutdown": if user wants to turn off PC. Target is null.
|
| 61 |
+
- "chat": for general questions.
|
| 62 |
"""
|
| 63 |
|
| 64 |
# 1. Ask AI to define the action
|