Legola commited on
Commit
941730d
·
1 Parent(s): 7ab1142

Update app.py

Browse files

Added open image through pil

Files changed (1) hide show
  1. app.py +5 -1
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)