Spaces:
Sleeping
Sleeping
Ryan
commited on
Commit
·
2c05f74
1
Parent(s):
56cb19b
update
Browse files
app.py
CHANGED
@@ -241,7 +241,7 @@ def create_app():
|
|
241 |
key = selected_analysis.replace(" ", "_").lower()
|
242 |
if key in analyses:
|
243 |
updated_log[prompt][selected_analysis] = {
|
244 |
-
"timestamp":
|
245 |
"result": analyses[key]
|
246 |
}
|
247 |
|
@@ -764,7 +764,7 @@ def create_app():
|
|
764 |
if "analyses" in roberta_results and prompt_text in roberta_results["analyses"]:
|
765 |
if "roberta_sentiment" in roberta_results["analyses"][prompt_text]:
|
766 |
updated_log[prompt_text]["RoBERTa Sentiment"] = {
|
767 |
-
"timestamp":
|
768 |
"result": roberta_results["analyses"][prompt_text]["roberta_sentiment"]
|
769 |
}
|
770 |
|
|
|
241 |
key = selected_analysis.replace(" ", "_").lower()
|
242 |
if key in analyses:
|
243 |
updated_log[prompt][selected_analysis] = {
|
244 |
+
"timestamp": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
245 |
"result": analyses[key]
|
246 |
}
|
247 |
|
|
|
764 |
if "analyses" in roberta_results and prompt_text in roberta_results["analyses"]:
|
765 |
if "roberta_sentiment" in roberta_results["analyses"][prompt_text]:
|
766 |
updated_log[prompt_text]["RoBERTa Sentiment"] = {
|
767 |
+
"timestamp": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
768 |
"result": roberta_results["analyses"][prompt_text]["roberta_sentiment"]
|
769 |
}
|
770 |
|