Spaces:
Running
Running
added key to call
Browse files
app.py
CHANGED
@@ -98,9 +98,8 @@ else:
|
|
98 |
if user == "your.email@provider.com":
|
99 |
st.sidebar.error(f"Please provide your email adress")
|
100 |
else:
|
101 |
-
|
102 |
-
|
103 |
-
assert user == decrypt_message(encrypted_user), "decoded is different from original"
|
104 |
with open("rate_results.jsonl", "a", encoding="utf-8") as jsonl:
|
105 |
rating_data = {"user": encrypted_user, "ratings": st.session_state.html_ratings, "timestamp": datetime.now().isoformat()}
|
106 |
jsonl.write(json.dumps(rating_data, ensure_ascii=False))
|
|
|
98 |
if user == "your.email@provider.com":
|
99 |
st.sidebar.error(f"Please provide your email adress")
|
100 |
else:
|
101 |
+
encrypted_user = encrypt_message(FERNET_KEY, user)
|
102 |
+
assert user == decrypt_message(FERNET_KEY, encrypted_user), "decoded is different from original"
|
|
|
103 |
with open("rate_results.jsonl", "a", encoding="utf-8") as jsonl:
|
104 |
rating_data = {"user": encrypted_user, "ratings": st.session_state.html_ratings, "timestamp": datetime.now().isoformat()}
|
105 |
jsonl.write(json.dumps(rating_data, ensure_ascii=False))
|