Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from image_dataset import ImageDataset
|
|
| 3 |
from image_wgan import ImageWgan
|
| 4 |
import os
|
| 5 |
from os.path import exists
|
|
|
|
| 6 |
def init():
|
| 7 |
generated_samples_folder = "."
|
| 8 |
discriminator_saved_model = "discriminator64.model"
|
|
@@ -20,7 +21,7 @@ def init():
|
|
| 20 |
crop()
|
| 21 |
|
| 22 |
def crop():
|
| 23 |
-
|
| 24 |
import generator
|
| 25 |
res = 64
|
| 26 |
if res != 0:
|
|
@@ -49,8 +50,8 @@ init()
|
|
| 49 |
|
| 50 |
def gen():
|
| 51 |
init()
|
| 52 |
-
|
| 53 |
-
|
| 54 |
|
| 55 |
return "hi"
|
| 56 |
|
|
|
|
| 3 |
from image_wgan import ImageWgan
|
| 4 |
import os
|
| 5 |
from os.path import exists
|
| 6 |
+
from PIL import Image
|
| 7 |
def init():
|
| 8 |
generated_samples_folder = "."
|
| 9 |
discriminator_saved_model = "discriminator64.model"
|
|
|
|
| 21 |
crop()
|
| 22 |
|
| 23 |
def crop():
|
| 24 |
+
|
| 25 |
import generator
|
| 26 |
res = 64
|
| 27 |
if res != 0:
|
|
|
|
| 50 |
|
| 51 |
def gen():
|
| 52 |
init()
|
| 53 |
+
crop()
|
| 54 |
+
img = Image.open("0.png")
|
| 55 |
|
| 56 |
return "hi"
|
| 57 |
|