Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import torch
|
2 |
import nltk
|
3 |
-
|
4 |
nltk.download('omw-1.4')
|
5 |
from PIL import Image
|
6 |
from pytorch_pretrained_biggan import (BigGAN, one_hot_from_names, truncated_noise_sample,
|
@@ -29,7 +29,7 @@ with torch.no_grad():
|
|
29 |
output = gan_model(noise_vector, class_vector, truncation)
|
30 |
|
31 |
# If you have a GPU put back on CPU
|
32 |
-
output = output.to('cpu')
|
33 |
|
34 |
# If you have a sixtel compatible terminal you can display the images in the terminal
|
35 |
# (see https://github.com/saitoha/libsixel for details)
|
|
|
1 |
import torch
|
2 |
import nltk
|
3 |
+
nltk.download('wordnet')
|
4 |
nltk.download('omw-1.4')
|
5 |
from PIL import Image
|
6 |
from pytorch_pretrained_biggan import (BigGAN, one_hot_from_names, truncated_noise_sample,
|
|
|
29 |
output = gan_model(noise_vector, class_vector, truncation)
|
30 |
|
31 |
# If you have a GPU put back on CPU
|
32 |
+
#output = output.to('cpu')
|
33 |
|
34 |
# If you have a sixtel compatible terminal you can display the images in the terminal
|
35 |
# (see https://github.com/saitoha/libsixel for details)
|