Spaces:
Runtime error
Runtime error
Commit Β·
446c108
1
Parent(s): d20ff01
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ python_path = hf_hub_download(repo_id='PierreHanna/TextRetrieval', repo_type="sp
|
|
| 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:
|