Update ff.py
Browse files
ff.py
CHANGED
@@ -4,13 +4,13 @@ import math as matha
|
|
4 |
from g4f.Provider import (
|
5 |
Bard)
|
6 |
import g4f
|
7 |
-
from bardapi import Bard as Bd
|
8 |
import os
|
9 |
token=os.environ.get("TOKEN")
|
10 |
toto = os.environ.get("BARD")
|
11 |
|
12 |
|
13 |
-
bard = Bd(token=toto)
|
14 |
import google.generativeai as genai
|
15 |
|
16 |
genai.configure(
|
@@ -271,5 +271,6 @@ def mariam_chimi(chi, im):
|
|
271 |
else:
|
272 |
with open(im.name, 'rb') as f:
|
273 |
image_data = f.read()
|
274 |
-
bard_answer = bard.ask_about_image(chi, image_data)
|
275 |
-
return bard_answer['content']
|
|
|
|
4 |
from g4f.Provider import (
|
5 |
Bard)
|
6 |
import g4f
|
7 |
+
#from bardapi import Bard as Bd
|
8 |
import os
|
9 |
token=os.environ.get("TOKEN")
|
10 |
toto = os.environ.get("BARD")
|
11 |
|
12 |
|
13 |
+
#bard = Bd(token=toto)
|
14 |
import google.generativeai as genai
|
15 |
|
16 |
genai.configure(
|
|
|
271 |
else:
|
272 |
with open(im.name, 'rb') as f:
|
273 |
image_data = f.read()
|
274 |
+
#bard_answer = bard.ask_about_image(chi, image_data)
|
275 |
+
#return bard_answer['content']
|
276 |
+
return "non disponible "
|