SerdarHelli commited on
Commit
ff2c2a9
1 Parent(s): e9ceefd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -11,10 +11,9 @@ from tqdm import tqdm
11
  import gradio as gr
12
 
13
 
14
- proc = subprocess.Popen(['git', "clone", 'https://github.com/NVlabs/stylegan3.git' ,"stylegan3"],
15
- stdout=subprocess.PIPE,
16
- stderr=subprocess.STDOUT)
17
- sys.path.insert(0, 'stylegan3')
18
 
19
  def layout_grid(img, grid_w=None, grid_h=1, float_to_uint8=True, chw_to_hwc=True, to_numpy=True):
20
  batch_size, channels, img_h, img_w = img.shape
 
11
  import gradio as gr
12
 
13
 
14
+ os.system("git clone https://github.com/NVlabs/stylegan3")
15
+
16
+ sys.path.append("stylegan3")
 
17
 
18
  def layout_grid(img, grid_w=None, grid_h=1, float_to_uint8=True, chw_to_hwc=True, to_numpy=True):
19
  batch_size, channels, img_h, img_w = img.shape