Banu007 commited on
Commit
9ac80ab
·
verified ·
1 Parent(s): 9055694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -49,16 +49,16 @@ def home():
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
 
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