Update run.py
Browse files
run.py
CHANGED
@@ -45,13 +45,13 @@ json_data={
|
|
45 |
"project_id": "nestolechatbot",
|
46 |
"private_key_id": key1,
|
47 |
"private_key": pkey,
|
48 |
-
"client_email":
|
49 |
-
"client_email":
|
50 |
-
"client_id":
|
51 |
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
52 |
"token_uri": "https://oauth2.googleapis.com/token",
|
53 |
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
54 |
-
"client_x509_cert_url":
|
55 |
"universe_domain": "googleapis.com"
|
56 |
}
|
57 |
creds = service_account.Credentials.from_service_account_info(json_data, scopes=scope)
|
@@ -239,7 +239,7 @@ def responsecritical(
|
|
239 |
|
240 |
|
241 |
def response(
|
242 |
-
request: gr.Request, prompt, temperature=0.9, max_new_tokens=500, top_p=0.95, repetition_penalty=1.0,
|
243 |
):
|
244 |
temperature = float(0.9)
|
245 |
if temperature < 1e-2: temperature = 1e-2
|
|
|
45 |
"project_id": "nestolechatbot",
|
46 |
"private_key_id": key1,
|
47 |
"private_key": pkey,
|
48 |
+
"client_email": key29,
|
49 |
+
"client_email": key29,
|
50 |
+
"client_id": key30,
|
51 |
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
52 |
"token_uri": "https://oauth2.googleapis.com/token",
|
53 |
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
54 |
+
"client_x509_cert_url": key31,
|
55 |
"universe_domain": "googleapis.com"
|
56 |
}
|
57 |
creds = service_account.Credentials.from_service_account_info(json_data, scopes=scope)
|
|
|
239 |
|
240 |
|
241 |
def response(
|
242 |
+
request: gr.Request, prompt,history, temperature=0.9, max_new_tokens=500, top_p=0.95, repetition_penalty=1.0,
|
243 |
):
|
244 |
temperature = float(0.9)
|
245 |
if temperature < 1e-2: temperature = 1e-2
|