Nikhil0987 commited on
Commit
3cac41d
·
verified ·
1 Parent(s): b3c3494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -22
app.py CHANGED
@@ -3,33 +3,18 @@ import json
3
  import google.generativeai as genai
4
 
5
 
6
- # Load JSON configuration
7
- # with open('config.json', 'r') as f:
8
- # config = json.load(f)
 
9
 
10
 
11
- #save json data
12
 
13
- # def save_data():
14
- # with open("data.json")as file:
15
- # data =json.load(file)
16
- # allchatlog = data["chatlog"]
17
 
18
- # allchatlog.append(Chatlog)
19
 
20
- # with open("data.json","w") as file:
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