Docfile commited on
Commit
293c5f7
·
1 Parent(s): d013388

Update ff.py

Browse files
Files changed (1) hide show
  1. ff.py +4 -2
ff.py CHANGED
@@ -2,9 +2,11 @@
2
  import requests
3
  from gradio_client import Client
4
  from gradio_client import Client
5
- import g4f
6
  from g4f.Provider import (
7
  Bard)
 
 
 
8
  client = Client("https://docfile-bhh.hf.space/")
9
 
10
 
@@ -179,7 +181,7 @@ def mariam_web(pro):
179
  return "Veuillez saisir une question."
180
 
181
  t_pro = " agis en tant q'ia appele mariam et creer par youssouf. ton role est uniquement d'assister. reponds a cette question: " + pro
182
- response = g4f.ChatCompletion.create(model=g4f.models.default,messages=[{"role": "user", "content":t_pro}],provider=Bard,cookies={"__Secure-1PSID": "bQg91E2ggGcxSbysMaqi7i_a71yETVbx779_2CWTMjnKyo2EhWr2xbDEoSRrsX47phTNpg.", "__Secure-1PSIDCC": "APoG2W-ldh3902I0dUkwXQQeEXKwqrQJXn54dmQNYHOAl1J8fEdhfIH2zB-jAOdtyz39Jojlsw"},auth=True)
183
  return response
184
 
185
 
 
2
  import requests
3
  from gradio_client import Client
4
  from gradio_client import Client
 
5
  from g4f.Provider import (
6
  Bard)
7
+ import g4f
8
+
9
+ from bardapi import Bard as bd
10
  client = Client("https://docfile-bhh.hf.space/")
11
 
12
 
 
181
  return "Veuillez saisir une question."
182
 
183
  t_pro = " agis en tant q'ia appele mariam et creer par youssouf. ton role est uniquement d'assister. reponds a cette question: " + pro
184
+ response = g4f.ChatCompletion.create(model=g4f.models.default,messages=[{"role": "user", "content":t_pro}],provider=Bard,cookies={"__Secure-1PSID": "bwg91Iygc25J0aTg0ZnoY67_lXLwbhMqloeHH3SRPOkldVArhW9yDClbODrn7d64r6ErVg.", "__Secure-1PSIDCC": "ACA-OxNTV6UL9frGJy-arTqz3Yn34xZEtr4n1JTHqujZzWbZF2T5M4UWNiG7WE1i5VhkwaIMfw"},auth=True)
185
  return response
186
 
187