QuickLearnerAI commited on
Commit
5951891
·
verified ·
1 Parent(s): 11f5ff5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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= "meta-llama/Llama-Vision-Free",
142
- message= messages,
143
- stream= False
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: