Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -205,9 +205,13 @@ Instructions:
|
|
| 205 |
|
| 206 |
Be precise and thorough in your analysis."""
|
| 207 |
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
-
result = model(
|
| 211 |
|
| 212 |
if result:
|
| 213 |
# Step 4: Validate the answer
|
|
|
|
| 205 |
|
| 206 |
Be precise and thorough in your analysis."""
|
| 207 |
|
| 208 |
+
# Fix: Use proper message format for OpenAIServerModel
|
| 209 |
+
messages = [
|
| 210 |
+
{"role": "system", "content": "You are an expert at solving complex and trick questions. Always think step by step and be very careful about the exact wording of questions."},
|
| 211 |
+
{"role": "user", "content": enhanced_prompt}
|
| 212 |
+
]
|
| 213 |
|
| 214 |
+
result = model(messages)
|
| 215 |
|
| 216 |
if result:
|
| 217 |
# Step 4: Validate the answer
|