Docfile commited on
Commit
53ef663
·
verified ·
1 Parent(s): 6df010f

Update ff.py

Browse files
Files changed (1) hide show
  1. ff.py +3 -3
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
- #response = g4f.ChatCompletion.create(model=g4f.models.default,messages=[{"role": "user", "content":t_pro}],provider=Bard,cookies={"__Secure-1PSID":"dQg91CxO8uBxZRm-6QpOx-8nik1XlC9TzWoIfOpsOlcNAYgeZSG6NJ-2A3y3dmp_hRzGrA.", "__Secure-1PSIDCC": "ACA-OxPnUrZhljKXHrtQcTO2xpYdxfaM9N0oLe34ghl6Su3BHjrZs6TK35gWLxgPMngVENiK9Q"},auth=True)
254
 
255
  #bard = bd(token=token)
256
  #response = bard.get_answer(t_pro)['content']
257
  print(" web::",pro)
258
- return "Non disponible pour l'instant."
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):