Spaces:
Sleeping
Sleeping
Ryan
commited on
Commit
·
0071ad3
1
Parent(s):
d7d4654
update
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ import json
|
|
10 |
import matplotlib.pyplot as plt
|
11 |
import io
|
12 |
import base64
|
|
|
13 |
|
14 |
# Download necessary NLTK resources function remains unchanged
|
15 |
def download_nltk_resources():
|
@@ -197,7 +198,7 @@ def create_app():
|
|
197 |
if analysis_key_map[selected_analysis] in analyses:
|
198 |
# Store the specific analysis result
|
199 |
updated_log[prompt_text][selected_analysis] = {
|
200 |
-
"timestamp":
|
201 |
"result": analyses[analysis_key_map[selected_analysis]]
|
202 |
}
|
203 |
|
|
|
10 |
import matplotlib.pyplot as plt
|
11 |
import io
|
12 |
import base64
|
13 |
+
import datetime
|
14 |
|
15 |
# Download necessary NLTK resources function remains unchanged
|
16 |
def download_nltk_resources():
|
|
|
198 |
if analysis_key_map[selected_analysis] in analyses:
|
199 |
# Store the specific analysis result
|
200 |
updated_log[prompt_text][selected_analysis] = {
|
201 |
+
"timestamp": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
202 |
"result": analyses[analysis_key_map[selected_analysis]]
|
203 |
}
|
204 |
|