Update ff.py
Browse files
ff.py
CHANGED
@@ -198,11 +198,11 @@ def mariam_chimi(chi,im):
|
|
198 |
return "aucune instruction donner..."
|
199 |
|
200 |
else:
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
|
207 |
|
208 |
#fin
|
|
|
198 |
return "aucune instruction donner..."
|
199 |
|
200 |
else:
|
201 |
+
bdd = bd(token='bwg91Iygc25J0aTg0ZnoY67_lXLwbhMqloeHH3SRPOkldVArhW9yDClbODrn7d64r6ErVg.')
|
202 |
+
with open(im.name, 'rb') as f:
|
203 |
+
image_data = f.read()
|
204 |
+
bard_answer = bdd.ask_about_image(chi, image_data)
|
205 |
+
return bard_answer['content']
|
206 |
|
207 |
|
208 |
#fin
|