Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ class_vector = torch.from_numpy(class_vector)
|
|
| 22 |
# If you have a GPU, put everything on cuda
|
| 23 |
noise_vector = noise_vector.to('cuda')
|
| 24 |
class_vector = class_vector.to('cuda')
|
| 25 |
-
gan_model.to('cuda')
|
| 26 |
|
| 27 |
# Generate an image
|
| 28 |
with torch.no_grad():
|
|
|
|
| 22 |
# If you have a GPU, put everything on cuda
|
| 23 |
noise_vector = noise_vector.to('cuda')
|
| 24 |
class_vector = class_vector.to('cuda')
|
| 25 |
+
#gan_model.to('cuda')
|
| 26 |
|
| 27 |
# Generate an image
|
| 28 |
with torch.no_grad():
|