slslslrhfem commited on
Commit ·
5bb6d1f
1
Parent(s): adedb57
change download mechanism
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ sys.path.insert(0, '.')
|
|
| 27 |
sys.path.insert(0, './ml_models')
|
| 28 |
|
| 29 |
# Import inference - any error will bubble up
|
| 30 |
-
|
| 31 |
|
| 32 |
def download_data_from_hub():
|
| 33 |
base_dir = Path(".")
|
|
@@ -147,6 +147,7 @@ def process_audio_for_matching(audio_file):
|
|
| 147 |
"""
|
| 148 |
|
| 149 |
# Call inference directly - any error will show up
|
|
|
|
| 150 |
result = inference(audio_file)
|
| 151 |
|
| 152 |
if result.get('message') != 'success':
|
|
|
|
| 27 |
sys.path.insert(0, './ml_models')
|
| 28 |
|
| 29 |
# Import inference - any error will bubble up
|
| 30 |
+
|
| 31 |
|
| 32 |
def download_data_from_hub():
|
| 33 |
base_dir = Path(".")
|
|
|
|
| 147 |
"""
|
| 148 |
|
| 149 |
# Call inference directly - any error will show up
|
| 150 |
+
from inference import inference
|
| 151 |
result = inference(audio_file)
|
| 152 |
|
| 153 |
if result.get('message') != 'success':
|