Nikhil0987 commited on
Commit
0262447
·
verified ·
1 Parent(s): 87e13c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import google.generativeai as genai
7
 
8
 
9
 
10
- def add_to_json(new_item):
11
  with open("test.json", "r") as file:
12
  data = json.load(file)
13
 
@@ -20,6 +20,8 @@ import google.generativeai as genai
20
  with open("test.json", "w") as file:
21
  json.dump(data, file, indent=4)
22
 
 
 
23
 
24
  GOOGLE_API_KEY="AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
25
 
 
7
 
8
 
9
 
10
+ def add_to_json():
11
  with open("test.json", "r") as file:
12
  data = json.load(file)
13
 
 
20
  with open("test.json", "w") as file:
21
  json.dump(data, file, indent=4)
22
 
23
+ add_to_json()
24
+
25
 
26
  GOOGLE_API_KEY="AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
27