Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|