xiaoyao9184 commited on
Commit
cd94435
·
verified ·
1 Parent(s): f07b84d

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- subprocess.check_call(["pip", "install", "-r", requirements_path])
 
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