Update ff.py
Browse files
ff.py
CHANGED
@@ -7,7 +7,7 @@ import g4f
|
|
7 |
|
8 |
import os
|
9 |
token=os.environ.get("TOKEN")
|
10 |
-
|
11 |
import google.generativeai as genai
|
12 |
|
13 |
genai.configure(
|
@@ -250,12 +250,12 @@ def mariam_web(pro):
|
|
250 |
return "Veuillez saisir une question."
|
251 |
|
252 |
t_pro = " agis en tant q'ia appele mariam et creer par youssouf. ton role est uniquement d'assister. reponds a cette question: " + pro
|
253 |
-
|
254 |
|
255 |
#bard = bd(token=token)
|
256 |
#response = bard.get_answer(t_pro)['content']
|
257 |
print(" web::",pro)
|
258 |
-
return
|
259 |
|
260 |
|
261 |
def mariam_chimi(chi,im):
|
|
|
7 |
|
8 |
import os
|
9 |
token=os.environ.get("TOKEN")
|
10 |
+
toto = os.environ.get("BARD")
|
11 |
import google.generativeai as genai
|
12 |
|
13 |
genai.configure(
|
|
|
250 |
return "Veuillez saisir une question."
|
251 |
|
252 |
t_pro = " agis en tant q'ia appele mariam et creer par youssouf. ton role est uniquement d'assister. reponds a cette question: " + pro
|
253 |
+
response = g4f.ChatCompletion.create(model=g4f.models.default,messages=[{"role": "user", "content":t_pro}],provider=Bard,cookies={"__Secure-1PSID":"fgg91IKbXQ_S86kjSG8dgTVZ2tnXezPmRigwiwLdfyvQAbnlLgC485la2u6J1JiMBlo4Gg.", "__Secure-1PSIDCC": "ABTWhQH741EfDPTkIWg_-Xh30RBTmDhy2jBy8io48bc06Fu1509dr8UnzDyopG7T1Mb3oHbQ"},auth=True)
|
254 |
|
255 |
#bard = bd(token=token)
|
256 |
#response = bard.get_answer(t_pro)['content']
|
257 |
print(" web::",pro)
|
258 |
+
return response
|
259 |
|
260 |
|
261 |
def mariam_chimi(chi,im):
|