Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,11 +33,12 @@ Adapt the JSON structure to fit the context of the command, but always include t
|
|
| 33 |
"""
|
| 34 |
|
| 35 |
def process_command(command):
|
|
|
|
| 36 |
response = client.chat.completions.create(
|
| 37 |
model="gpt-4o",
|
| 38 |
messages=[
|
| 39 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 40 |
-
{"role": "user", "content":
|
| 41 |
]
|
| 42 |
)
|
| 43 |
return json.loads(response.choices[0].message.content)
|
|
|
|
| 33 |
"""
|
| 34 |
|
| 35 |
def process_command(command):
|
| 36 |
+
text=command
|
| 37 |
response = client.chat.completions.create(
|
| 38 |
model="gpt-4o",
|
| 39 |
messages=[
|
| 40 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 41 |
+
{"role": "user", "content": text}
|
| 42 |
]
|
| 43 |
)
|
| 44 |
return json.loads(response.choices[0].message.content)
|