Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,10 @@ import json
|
|
| 3 |
import google.generativeai as genai
|
| 4 |
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
def add_to_json(new_data):
|
| 7 |
with open("test.json", "r") as file:
|
| 8 |
existing_data = json.load(file)
|
|
@@ -17,8 +21,8 @@ def add_to_json(new_data):
|
|
| 17 |
new_data = {
|
| 18 |
|
| 19 |
|
| 20 |
-
"goal": ,
|
| 21 |
-
|
| 22 |
|
| 23 |
}
|
| 24 |
|
|
|
|
| 3 |
import google.generativeai as genai
|
| 4 |
|
| 5 |
|
| 6 |
+
|
| 7 |
+
Goal =st.text_input("Enter your goal:")
|
| 8 |
+
|
| 9 |
+
|
| 10 |
def add_to_json(new_data):
|
| 11 |
with open("test.json", "r") as file:
|
| 12 |
existing_data = json.load(file)
|
|
|
|
| 21 |
new_data = {
|
| 22 |
|
| 23 |
|
| 24 |
+
"goal": Goal,
|
| 25 |
+
|
| 26 |
|
| 27 |
}
|
| 28 |
|