sunnyzjx commited on
Commit
63cf32e
ยท
verified ยท
1 Parent(s): 7446e49

Update annotation.py

Browse files
Files changed (1) hide show
  1. annotation.py +3 -2
annotation.py CHANGED
@@ -2,10 +2,11 @@ import re
2
  import os
3
  import json
4
  from huggingface_hub import HfApi, HfFolder, Repository
 
5
 
6
  # ๅˆๅง‹ๅŒ– Hub token
7
- HF_TOKEN = os.getenv("HF_TOKEN") # ไปŽ Space secret ้‡Œ่ฏปๅ–
8
- REPO_ID = "sunnyzjx/annotation_results" # ไฝ ็š„ dataset repo
9
 
10
  def get_user_annotation_file(username):
11
  """่Žทๅ–็”จๆˆท็‰นๅฎš็š„ๆ ‡ๆณจๆ–‡ไปถ่ทฏๅพ„"""
 
2
  import os
3
  import json
4
  from huggingface_hub import HfApi, HfFolder, Repository
5
+ import config
6
 
7
  # ๅˆๅง‹ๅŒ– Hub token
8
+ HF_TOKEN = os.getenv("HF_TOKEN")
9
+ REPO_ID = config.SAVE_REPO_ID
10
 
11
  def get_user_annotation_file(username):
12
  """่Žทๅ–็”จๆˆท็‰นๅฎš็š„ๆ ‡ๆณจๆ–‡ไปถ่ทฏๅพ„"""