Ctaake commited on
Commit
9e6b080
·
verified ·
1 Parent(s): 8d9adb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ import os
13
  DATASET_REPO_URL = "https://huggingface.co/datasets/ctaake/FranziBotLog"
14
  DATA_FILENAME = "log.csv"
15
  DATA_FILE = os.path.join("data", DATA_FILENAME)
16
- repo = Repository(local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=os.environ['HF_TOKEN'])
17
 
18
  # Model which is used
19
  checkpoint = "CohereForAI/c4ai-command-r-v01"
@@ -100,7 +100,7 @@ def event_voting(vote_data: gr.LikeData):
100
  writer = csv.DictWriter(csvfile, fieldnames=[ "message", "time"])
101
  writer.writerow(
102
  { "message": vote_data.value, "time": str(datetime.now().isoformat())})
103
- commit_url = repo.push_to_hub()
104
  print(commit_url)
105
 
106
 
 
13
  DATASET_REPO_URL = "https://huggingface.co/datasets/ctaake/FranziBotLog"
14
  DATA_FILENAME = "log.csv"
15
  DATA_FILE = os.path.join("data", DATA_FILENAME)
16
+ repo = Repository(local_dir="data", clone_from=DATASET_REPO_URL)
17
 
18
  # Model which is used
19
  checkpoint = "CohereForAI/c4ai-command-r-v01"
 
100
  writer = csv.DictWriter(csvfile, fieldnames=[ "message", "time"])
101
  writer.writerow(
102
  { "message": vote_data.value, "time": str(datetime.now().isoformat())})
103
+ commit_url = repo.push_to_hub(token=os.environ['HF_TOKEN'])
104
  print(commit_url)
105
 
106