Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|