feng2022 commited on
Commit
d603fa9
1 Parent(s): a54ecf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -73,6 +73,7 @@ def image_create(input_img):
73
  latent = torch.randn((1, 512), device=device)
74
  img_out, _, _ = generator([latent])
75
  imgs_arr = make_image(img_out)
 
76
 
77
  def main():
78
  #torch.cuda.init()
 
73
  latent = torch.randn((1, 512), device=device)
74
  img_out, _, _ = generator([latent])
75
  imgs_arr = make_image(img_out)
76
+ return imgs_arr[0].cpu().numpy()
77
 
78
  def main():
79
  #torch.cuda.init()