Spaces:
Runtime error
Runtime error
Commit Β·
64eae51
1
Parent(s): 005a146
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,10 @@ index_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", f
|
|
| 32 |
use_auth_token=os.environ['TOKEN'])
|
| 33 |
indexnames_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['INDEX_NAMES'],
|
| 34 |
use_auth_token=os.environ['TOKEN']) #########
|
| 35 |
-
catalog_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['CATALOG'],
|
| 36 |
-
use_auth_token=os.environ['TOKEN']) ###############
|
|
|
|
|
|
|
| 37 |
url_dict=get_durl(catalog_path) ############
|
| 38 |
audio_names = joblib.load(open(indexnames_path, 'rb')) ############
|
| 39 |
index = faiss.read_index(index_path)
|
|
|
|
| 32 |
use_auth_token=os.environ['TOKEN'])
|
| 33 |
indexnames_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['INDEX_NAMES'],
|
| 34 |
use_auth_token=os.environ['TOKEN']) #########
|
| 35 |
+
#catalog_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['CATALOG'],
|
| 36 |
+
# use_auth_token=os.environ['TOKEN']) ###############
|
| 37 |
+
catalog_path = get_catalog()
|
| 38 |
+
|
| 39 |
url_dict=get_durl(catalog_path) ############
|
| 40 |
audio_names = joblib.load(open(indexnames_path, 'rb')) ############
|
| 41 |
index = faiss.read_index(index_path)
|