Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
b3948c4
1
Parent(s):
5906e88
Add code
Browse files
app.py
CHANGED
@@ -5,10 +5,14 @@ from search import search
|
|
5 |
import pandas as pd
|
6 |
|
7 |
db_file = hf_hub_download(
|
8 |
-
repo_id="freddyaboulton/common-voice-english-audio",
|
|
|
|
|
9 |
)
|
10 |
index_file = hf_hub_download(
|
11 |
-
repo_id="freddyaboulton/common-voice-english-audio",
|
|
|
|
|
12 |
)
|
13 |
|
14 |
audio_embedding_system = AudioEmbeddingSystem(db_path=db_file, index_path=index_file)
|
|
|
5 |
import pandas as pd
|
6 |
|
7 |
db_file = hf_hub_download(
|
8 |
+
repo_id="freddyaboulton/common-voice-english-audio",
|
9 |
+
filename="audio_db.sqlite",
|
10 |
+
repo_type="dataset",
|
11 |
)
|
12 |
index_file = hf_hub_download(
|
13 |
+
repo_id="freddyaboulton/common-voice-english-audio",
|
14 |
+
filename="audio_faiss.index",
|
15 |
+
repo_type="dataset",
|
16 |
)
|
17 |
|
18 |
audio_embedding_system = AudioEmbeddingSystem(db_path=db_file, index_path=index_file)
|