vilarin commited on
Commit
0e8c288
·
verified ·
1 Parent(s): 26fb21c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  import spaces
2
  import os
3
  import time
 
1
+
2
+ import subprocess
3
+ import shlex
4
+ if os.getenv('SYSTEM') == 'spaces':
5
+ git_repo = "https://github.com/huggingface/transformers.git"
6
+ subprocess.call(shlex.split(f'pip install git+{git_repo}'))
7
+
8
  import spaces
9
  import os
10
  import time