NeonBohdan commited on
Commit
db1dd40
·
1 Parent(s): a8b33d5

Create key in root

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -22,6 +22,12 @@ config = {
22
  }
23
  chatgpt = ChatGPT(config)
24
 
 
 
 
 
 
 
25
  config = {
26
  "key_path": key_path,
27
  "role": "You are trying to give a short answer in less than 40 words.",
 
22
  }
23
  chatgpt = ChatGPT(config)
24
 
25
+ key_google = os.environ['GOOGLE_API_KEY']
26
+ key_path = "./vertex.json"
27
+
28
+ with open(key_path, "w") as json_file:
29
+ json_file.write(key_google)
30
+
31
  config = {
32
  "key_path": key_path,
33
  "role": "You are trying to give a short answer in less than 40 words.",