SerdarHelli commited on
Commit
93eccf3
1 Parent(s): a0255c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -2,8 +2,15 @@ import os
2
  import pickle
3
  import sys
4
 
5
- sys.path.insert(0, 'stylegan_xl')
 
6
 
 
 
 
 
 
 
7
  import imageio
8
  import numpy as np
9
  import scipy.interpolate
 
2
  import pickle
3
  import sys
4
 
5
+ import subprocess
6
+ import tarfile
7
 
8
+ import subprocess
9
+
10
+ if os.environ.get('SYSTEM') == 'spaces':
11
+ subprocess.call('pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113'.split())
12
+
13
+
14
  import imageio
15
  import numpy as np
16
  import scipy.interpolate