Spaces:
Paused
Paused
Update parameter name from use_auth_token to token in hf_hub_download function
Browse files
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",
|
| 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'
|