Update app.py
Browse filesAdded open image through pil
app.py
CHANGED
@@ -92,7 +92,11 @@ def style_transfer(cont_img,styl_img):
|
|
92 |
#Start the timer
|
93 |
start_time = time.time()
|
94 |
|
95 |
-
|
|
|
|
|
|
|
|
|
96 |
#transform the input image
|
97 |
style_img = image_transform(styl_img)
|
98 |
content_img =image_transform(cont_img)
|
|
|
92 |
#Start the timer
|
93 |
start_time = time.time()
|
94 |
|
95 |
+
#Opening the image
|
96 |
+
cont_img= Image.open(cont_img)
|
97 |
+
styl_img=Image.open(styl_img)
|
98 |
+
|
99 |
+
|
100 |
#transform the input image
|
101 |
style_img = image_transform(styl_img)
|
102 |
content_img =image_transform(cont_img)
|