gagannarula commited on
Commit
f7cc3c8
·
verified ·
1 Parent(s): e8ffb26

trying with secret

Browse files
Files changed (1) hide show
  1. data_store.py +2 -2
data_store.py CHANGED
@@ -7,10 +7,10 @@ from huggingface_hub import HfApi, HfFileSystem
7
  DATASET_REPO = "EarthSpeciesProject/naturelm-audio-space-logs"
8
  SPLIT = "test"
9
  TESTING = os.getenv("TESTING", "0") == "1"
10
- api = HfApi()
11
  # Upload audio
12
  # check if file exists
13
- hf_fs = HfFileSystem()
14
 
15
 
16
  def upload_data(audio: str | Path, user_text: str, model_response: str):
 
7
  DATASET_REPO = "EarthSpeciesProject/naturelm-audio-space-logs"
8
  SPLIT = "test"
9
  TESTING = os.getenv("TESTING", "0") == "1"
10
+ api = HfApi(token=os.getenv("HF_TOKEN",None))
11
  # Upload audio
12
  # check if file exists
13
+ hf_fs = HfFileSystem(token=os.getenv("HF_TOKEN",None))
14
 
15
 
16
  def upload_data(audio: str | Path, user_text: str, model_response: str):