Update app.py
Browse files
app.py
CHANGED
|
@@ -138,10 +138,11 @@ def gen_math_sol_together(api_key, prob_text, img_path=None, history=None):
|
|
| 138 |
})
|
| 139 |
|
| 140 |
response = client.chat.completions.create(
|
| 141 |
-
model=
|
| 142 |
-
|
| 143 |
-
stream=
|
| 144 |
)
|
|
|
|
| 145 |
solution= response.choices[0].message.content
|
| 146 |
|
| 147 |
if history is None:
|
|
|
|
| 138 |
})
|
| 139 |
|
| 140 |
response = client.chat.completions.create(
|
| 141 |
+
model="meta-llama/Llama-Vision-Free",
|
| 142 |
+
messages=messages, # ✅ Use the correct key
|
| 143 |
+
stream=False
|
| 144 |
)
|
| 145 |
+
|
| 146 |
solution= response.choices[0].message.content
|
| 147 |
|
| 148 |
if history is None:
|