Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,12 @@ def run_style_transfer(cnn, normalization_mean, normalization_std,
|
|
94 |
return output_img
|
95 |
|
96 |
#example_images
|
97 |
-
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
|
98 |
img_1 = example_list[0]
|
99 |
img_2 = example_list[1]
|
|
|
|
|
100 |
#Defining the predict function
|
101 |
def style_transfer(cont_img=Image.open(img_1),styl_img=Image.open(img_2)):
|
102 |
|
|
|
94 |
return output_img
|
95 |
|
96 |
#example_images
|
97 |
+
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
98 |
+
print(example_list)
|
99 |
img_1 = example_list[0]
|
100 |
img_2 = example_list[1]
|
101 |
+
print(img_1)
|
102 |
+
print(img_2)
|
103 |
#Defining the predict function
|
104 |
def style_transfer(cont_img=Image.open(img_1),styl_img=Image.open(img_2)):
|
105 |
|