Update app.py
Browse files
app.py
CHANGED
|
@@ -114,12 +114,12 @@ def gen_math_sol_together(api_key, prob_text, img_path=None, history=None):
|
|
| 114 |
|
| 115 |
if prob_text.strip(): # for text
|
| 116 |
user_message_content.append({
|
| 117 |
-
"type": "text"
|
| 118 |
"text": f"Solve this math problem:{prob_text}"
|
| 119 |
})
|
| 120 |
else: #image
|
| 121 |
user_message_content.append({
|
| 122 |
-
"type": "text"
|
| 123 |
"text": "Solve this math problem from the given image"
|
| 124 |
})
|
| 125 |
if img_path:
|
|
|
|
| 114 |
|
| 115 |
if prob_text.strip(): # for text
|
| 116 |
user_message_content.append({
|
| 117 |
+
"type": "text",
|
| 118 |
"text": f"Solve this math problem:{prob_text}"
|
| 119 |
})
|
| 120 |
else: #image
|
| 121 |
user_message_content.append({
|
| 122 |
+
"type": "text",
|
| 123 |
"text": "Solve this math problem from the given image"
|
| 124 |
})
|
| 125 |
if img_path:
|