Spaces:
Running
Running
Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ def install_src():
|
|
20 |
requirements_path = os.path.join(LOCAL_PATH, "requirements.txt")
|
21 |
if os.path.exists(requirements_path):
|
22 |
print("Installing requirements...")
|
23 |
-
|
|
|
24 |
else:
|
25 |
print("No requirements.txt found.")
|
26 |
|
|
|
20 |
requirements_path = os.path.join(LOCAL_PATH, "requirements.txt")
|
21 |
if os.path.exists(requirements_path):
|
22 |
print("Installing requirements...")
|
23 |
+
# Lock versions by attaching a custom requirements.txt.
|
24 |
+
subprocess.check_call(["pip", "install", "-r", "./requirements.txt", "-r", requirements_path])
|
25 |
else:
|
26 |
print("No requirements.txt found.")
|
27 |
|