Spaces:
Runtime error
Runtime error
PierreHanna
commited on
Commit
β’
365609b
1
Parent(s):
036c24c
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ python_path = hf_hub_download(repo_id='PierreHanna/AudioSimilarity', repo_type="
|
|
26 |
#python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
|
27 |
# use_auth_token=os.environ['TOKEN'])
|
28 |
print(python_path)
|
29 |
-
|
30 |
-
|
31 |
|
32 |
def download_audio_(link):
|
33 |
with yt_dlp.YoutubeDL({'extract_audio': True, 'format': 'bestaudio', 'outtmpl': '%(title)s.mp3'}) as video:
|
|
|
26 |
#python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
|
27 |
# use_auth_token=os.environ['TOKEN'])
|
28 |
print(python_path)
|
29 |
+
sys.path.append(os.environ['PRIVATE_DIR'])
|
30 |
+
from models import *
|
31 |
|
32 |
def download_audio_(link):
|
33 |
with yt_dlp.YoutubeDL({'extract_audio': True, 'format': 'bestaudio', 'outtmpl': '%(title)s.mp3'}) as video:
|