nestole commited on
Commit
3dba665
1 Parent(s): 2214362

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +5 -5
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": "[email protected]",
49
- "client_email": "[email protected]",
50
- "client_id": "107457262210035412036",
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": "https://www.googleapis.com/robot/v1/metadata/x509/nestoleservice%40nestolechatbot.iam.gserviceaccount.com",
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