hadiyya commited on
Commit
d3ff2ec
Β·
verified Β·
1 Parent(s): 355b275

Run requirements.txt from app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  import spaces
2
  import cv2
3
  from PIL import Image
 
1
+ import subprocess
2
+ import sys
3
+
4
+ # Install dependencies from requirements.txt
5
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
6
+
7
  import spaces
8
  import cv2
9
  from PIL import Image