Spaces:
Running
Running
Update launcher.py
Browse files- launcher.py +1 -7
launcher.py
CHANGED
@@ -14,13 +14,7 @@ def install_packages_from_requirements(requirements_file):
|
|
14 |
subprocess.run(['pip3', 'install', '-r', requirements_file, '--upgrade'], check=True)
|
15 |
print("Packages installed successfully using pip3.")
|
16 |
except subprocess.CalledProcessError:
|
17 |
-
|
18 |
-
# If pip3 fails, try installing with pip
|
19 |
-
subprocess.run(['pip', 'install', '-r', requirements_file, '--upgrade'], check=True)
|
20 |
-
print("Packages installed successfully using pip.")
|
21 |
-
except subprocess.CalledProcessError:
|
22 |
-
print("Failed to install packages using both pip3 and pip.")
|
23 |
-
|
24 |
def download_from_github(url, output_file):
|
25 |
try:
|
26 |
with urllib.request.urlopen(url) as response, open(output_file, 'wb') as out_file:
|
|
|
14 |
subprocess.run(['pip3', 'install', '-r', requirements_file, '--upgrade'], check=True)
|
15 |
print("Packages installed successfully using pip3.")
|
16 |
except subprocess.CalledProcessError:
|
17 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
def download_from_github(url, output_file):
|
19 |
try:
|
20 |
with urllib.request.urlopen(url) as response, open(output_file, 'wb') as out_file:
|