awacke1 commited on
Commit
8f99b37
·
1 Parent(s): f240a0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def store_message(name: str, message: str):
43
  with open(DATA_FILE, "a") as csvfile:
44
  writer = csv.DictWriter(csvfile, fieldnames=[ "time", "message", "name", ])
45
  writer.writerow(
46
- {"time": str(datetime.now(), "message": message.strip(), "name": name.strip(), )}
47
  )
48
  # uncomment line below to begin saving. If creating your own copy you will need to add a access token called "HF_TOKEN" to your profile, then create a secret for your repo with the access code naming it "HF_TOKEN" For the CSV as well you can copy the header and first few lines to your own then update the paths above which should work to save to your own repository for datasets.
49
  commit_url = repo.push_to_hub()
 
43
  with open(DATA_FILE, "a") as csvfile:
44
  writer = csv.DictWriter(csvfile, fieldnames=[ "time", "message", "name", ])
45
  writer.writerow(
46
+ {"time": str(datetime.now()), "message": message.strip(), "name": name.strip() }
47
  )
48
  # uncomment line below to begin saving. If creating your own copy you will need to add a access token called "HF_TOKEN" to your profile, then create a secret for your repo with the access code naming it "HF_TOKEN" For the CSV as well you can copy the header and first few lines to your own then update the paths above which should work to save to your own repository for datasets.
49
  commit_url = repo.push_to_hub()