Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -1
src/streamlit_app.py
CHANGED
|
@@ -10,7 +10,8 @@ import json
|
|
| 10 |
#from huggingface_hub import login
|
| 11 |
from huggingface_hub import whoami
|
| 12 |
import os
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
user = whoami(token=os.environ.get("HF_TOKEN"))
|
| 16 |
#==
|
|
@@ -99,6 +100,10 @@ if st.button("Submit"):
|
|
| 99 |
# st.json(results)
|
| 100 |
|
| 101 |
#====
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
with scheduler.lock:
|
| 103 |
with feedback_file.open("a") as f:
|
| 104 |
f.write(json.dumps(results))
|
|
|
|
| 10 |
#from huggingface_hub import login
|
| 11 |
from huggingface_hub import whoami
|
| 12 |
import os
|
| 13 |
+
#==
|
| 14 |
+
import datetime
|
| 15 |
|
| 16 |
user = whoami(token=os.environ.get("HF_TOKEN"))
|
| 17 |
#==
|
|
|
|
| 100 |
# st.json(results)
|
| 101 |
|
| 102 |
#====
|
| 103 |
+
current_time = datetime.datetime.now()
|
| 104 |
+
result["day"] = str(current_time.day)
|
| 105 |
+
results["time"] = str(current_time.hour) + ":" + str(current_time.minute) + ":" + str(current_time.second)
|
| 106 |
+
|
| 107 |
with scheduler.lock:
|
| 108 |
with feedback_file.open("a") as f:
|
| 109 |
f.write(json.dumps(results))
|