Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def AIMemory(title: str, story: str):
|
|
31 |
if title and story:
|
32 |
with open(DATA_FILE, "a") as csvfile:
|
33 |
writer = csv.DictWriter(csvfile, fieldnames=["title", "story", "time"])
|
34 |
-
writer.writerow({"title":
|
35 |
commit_url = repo.push_to_hub()
|
36 |
return ""
|
37 |
|
|
|
31 |
if title and story:
|
32 |
with open(DATA_FILE, "a") as csvfile:
|
33 |
writer = csv.DictWriter(csvfile, fieldnames=["title", "story", "time"])
|
34 |
+
writer.writerow({"title": title, "story": story, "time": str(datetime.now())})
|
35 |
commit_url = repo.push_to_hub()
|
36 |
return ""
|
37 |
|