Update ff.py
Browse files
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": "
|
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 |
|