Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import google.generativeai as genai
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def add_to_json(
|
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 |
|