Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,33 +3,18 @@ import json
|
|
| 3 |
import google.generativeai as genai
|
| 4 |
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
# def save_data():
|
| 14 |
-
# with open("data.json")as file:
|
| 15 |
-
# data =json.load(file)
|
| 16 |
-
# allchatlog = data["chatlog"]
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
-
# json.dump(data,file,indent=4 )
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
# Uinput = st.text_input()
|
| 26 |
-
# Output = GenAI.jobhi (uinput)
|
| 27 |
-
|
| 28 |
-
# Chatlog= {
|
| 29 |
-
# user: uinput,
|
| 30 |
-
# out : output}
|
| 31 |
-
|
| 32 |
-
# save_data()
|
| 33 |
|
| 34 |
|
| 35 |
|
|
|
|
| 3 |
import google.generativeai as genai
|
| 4 |
|
| 5 |
|
| 6 |
+
def userinvoke():
|
| 7 |
+
with open("test.json") as file:
|
| 8 |
+
usersss = json.load(file)
|
| 9 |
+
return usersss
|
| 10 |
|
| 11 |
|
| 12 |
+
users = userinvoke()
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
routines = users[0]["routines"]
|
| 16 |
|
| 17 |
+
reminders = routines["reminders"][0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
|