Spaces:
Sleeping
Sleeping
Commit
·
1f9b964
1
Parent(s):
6d7e6be
bug in datetime
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def create_ui(query):
|
|
32 |
def log_non_flagged_queries(query):
|
33 |
# Log queries that are not flagged
|
34 |
with open("non_flagged_queries.json", "a") as f:
|
35 |
-
json.dump({"query": query, "timestamp": datetime.now().isoformat()}, f)
|
36 |
f.write("\n")
|
37 |
|
38 |
iface = gr.Interface(
|
|
|
32 |
def log_non_flagged_queries(query):
|
33 |
# Log queries that are not flagged
|
34 |
with open("non_flagged_queries.json", "a") as f:
|
35 |
+
json.dump({"query": query, "timestamp": datetime.datetime.now().isoformat()}, f)
|
36 |
f.write("\n")
|
37 |
|
38 |
iface = gr.Interface(
|