Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,18 +13,6 @@ import torch
|
|
13 |
import importlib
|
14 |
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
15 |
|
16 |
-
try:
|
17 |
-
# Upgrade yt-dlp
|
18 |
-
subprocess.check_call([sys.executable, "-m", "pip", "install", "-U", "yt-dlp"])
|
19 |
-
print("yt-dlp has been successfully updated.")
|
20 |
-
except subprocess.CalledProcessError as e:
|
21 |
-
print(f"An error occurred while updating yt-dlp: {e}")
|
22 |
-
|
23 |
-
# Reload the yt_dlp module to get the updated version
|
24 |
-
if 'yt_dlp' in sys.modules:
|
25 |
-
importlib.reload(sys.modules['yt_dlp'])
|
26 |
-
|
27 |
-
# Import yt_dlp and print the version
|
28 |
import yt_dlp
|
29 |
print(f"Current yt-dlp version: {yt_dlp.version.__version__}")
|
30 |
|
|
|
13 |
import importlib
|
14 |
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
import yt_dlp
|
17 |
print(f"Current yt-dlp version: {yt_dlp.version.__version__}")
|
18 |
|