Update app.py
Browse files
app.py
CHANGED
@@ -95,13 +95,10 @@ def run_style_transfer(cnn, normalization_mean, normalization_std,
|
|
95 |
|
96 |
#example_images
|
97 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
98 |
-
|
99 |
-
|
100 |
-
img_2 = example_list[1][0]
|
101 |
-
print(img_1)
|
102 |
-
print(img_2)
|
103 |
#Defining the predict function
|
104 |
-
def style_transfer(cont_img=Image.open(
|
105 |
|
106 |
#Start the timer
|
107 |
start_time = time.time()
|
|
|
95 |
|
96 |
#example_images
|
97 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
98 |
+
|
99 |
+
|
|
|
|
|
|
|
100 |
#Defining the predict function
|
101 |
+
def style_transfer(cont_img=Image.open(example_list[0][0]).convert('RGB'),styl_img=Image.open(example_list[1][0]).convert('RGB')):
|
102 |
|
103 |
#Start the timer
|
104 |
start_time = time.time()
|