Update ff.py
Browse files
ff.py
CHANGED
@@ -4,6 +4,7 @@ import math as matha
|
|
4 |
from g4f.Provider import (
|
5 |
Bard)
|
6 |
import g4f
|
|
|
7 |
import os
|
8 |
token=os.environ.get("TOKEN")
|
9 |
from bardapi import Bard as bd
|
@@ -188,8 +189,10 @@ def mariam_web(pro):
|
|
188 |
return "Veuillez saisir une question."
|
189 |
|
190 |
t_pro = " agis en tant q'ia appele mariam et creer par youssouf. ton role est uniquement d'assister. reponds a cette question: " + pro
|
191 |
-
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-OxNRmtfQSBZhWRlCXBfbheX_MTGKB5WLBByc9x7MtVRezY-lAATZrTyrjvdtw5ZYIBpD"},auth=True)
|
192 |
|
|
|
|
|
193 |
print(" web::",pro)
|
194 |
return response
|
195 |
|
|
|
4 |
from g4f.Provider import (
|
5 |
Bard)
|
6 |
import g4f
|
7 |
+
|
8 |
import os
|
9 |
token=os.environ.get("TOKEN")
|
10 |
from bardapi import Bard as bd
|
|
|
189 |
return "Veuillez saisir une question."
|
190 |
|
191 |
t_pro = " agis en tant q'ia appele mariam et creer par youssouf. ton role est uniquement d'assister. reponds a cette question: " + pro
|
192 |
+
#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-OxNRmtfQSBZhWRlCXBfbheX_MTGKB5WLBByc9x7MtVRezY-lAATZrTyrjvdtw5ZYIBpD"},auth=True)
|
193 |
|
194 |
+
bard = Bd(token=token)
|
195 |
+
response = bard.get_answer(t_pro)['content']
|
196 |
print(" web::",pro)
|
197 |
return response
|
198 |
|