Derfel2025 commited on
Commit
b6f01f7
·
1 Parent(s): 6d1b873

updated version of genai for strict pydantic output

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -68,6 +68,7 @@ def product_identification_response(image_path=r"C:\Users\JoeJo\Downloads\XyAaqB
68
  print(f"response is: {response}")
69
 
70
  data = json.loads(response.text)
 
71
  return data
72
 
73
  # Ask Gemini
 
68
  print(f"response is: {response}")
69
 
70
  data = json.loads(response.text)
71
+ print(f"data after pushing response into JSON is: {data}")
72
  return data
73
 
74
  # Ask Gemini
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- google-generativeai>=0.3.2
2
  groq>=0.2.1
3
  Pillow>=10.0.0
4
  gradio>=4.28.0
 
1
+ google-generativeai>=0.8.0
2
  groq>=0.2.1
3
  Pillow>=10.0.0
4
  gradio>=4.28.0