Tingxie commited on
Commit
441d1e3
·
verified ·
1 Parent(s): db36f53

Update parameter name from use_auth_token to token in hf_hub_download function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def search_structure_from_mass(structureDB,mass, ppm):
131
  dataset_repo = "Tingxie/CSU-MS2-DB"
132
  db_filename = "csu_ms2_db.db"
133
  token = os.getenv("HF_TOKEN")
134
- db_path = hf_hub_download(repo_id=dataset_repo, filename=db_filename, repo_type="dataset", use_auth_token=token)
135
  conn = sqlite3.connect(db_path, check_same_thread=False)
136
 
137
  device='cpu'
 
131
  dataset_repo = "Tingxie/CSU-MS2-DB"
132
  db_filename = "csu_ms2_db.db"
133
  token = os.getenv("HF_TOKEN")
134
+ db_path = hf_hub_download(repo_id=dataset_repo, filename=db_filename, repo_type="dataset", token=token)
135
  conn = sqlite3.connect(db_path, check_same_thread=False)
136
 
137
  device='cpu'