Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,15 +6,33 @@ import json
|
|
6 |
import uuid
|
7 |
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# st.set_page_config(page_title="Authentication", page_icon=":guardsman:", layout="wide")
|
10 |
|
11 |
# st.title("Authentication")
|
12 |
|
13 |
|
14 |
def load_json():
|
15 |
-
with open("
|
16 |
data = json.load(file)
|
17 |
-
|
|
|
18 |
|
19 |
|
20 |
|
@@ -28,7 +46,7 @@ def save_json():
|
|
28 |
|
29 |
def login():
|
30 |
st.title("Login")
|
31 |
-
|
32 |
usrname = st.text_input("Username")
|
33 |
password = st.text_input("Password", type="password")
|
34 |
if st.button("Login", key="loginkey"):
|
|
|
6 |
import uuid
|
7 |
|
8 |
|
9 |
+
def userinvoke():
|
10 |
+
with open("test.json") as file:
|
11 |
+
usersss = json.load(file)
|
12 |
+
return usersss
|
13 |
+
|
14 |
+
|
15 |
+
users = userinvoke()
|
16 |
+
|
17 |
+
|
18 |
+
routines = users[0]["routines"]
|
19 |
+
|
20 |
+
reminders = routines["reminders"][0]
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
# st.set_page_config(page_title="Authentication", page_icon=":guardsman:", layout="wide")
|
27 |
|
28 |
# st.title("Authentication")
|
29 |
|
30 |
|
31 |
def load_json():
|
32 |
+
with open("data.json") as file:
|
33 |
data = json.load(file)
|
34 |
+
name = "this is name"
|
35 |
+
return data, name
|
36 |
|
37 |
|
38 |
|
|
|
46 |
|
47 |
def login():
|
48 |
st.title("Login")
|
49 |
+
datayyy = load_json()
|
50 |
usrname = st.text_input("Username")
|
51 |
password = st.text_input("Password", type="password")
|
52 |
if st.button("Login", key="loginkey"):
|