Spaces:
Build error
Build error
Sophie98
commited on
Commit
•
56f61e4
1
Parent(s):
b3e13eb
testing
Browse files
app.py
CHANGED
@@ -102,15 +102,15 @@ def style_sofa(input_img: np.ndarray, style_img: np.ndarray):
|
|
102 |
mask = get_mask(resized_img)
|
103 |
#mask.save('mask.jpg')
|
104 |
# Created a styled sofa
|
105 |
-
print('Styling sofa...')
|
106 |
-
styled_sofa = create_styledSofa(resized_img,resized_style)
|
107 |
-
#styled_sofa.save('styled_sofa.jpg')
|
108 |
-
# postprocess the final image
|
109 |
-
print('Replacing sofa...')
|
110 |
-
new_sofa = replace_sofa(resized_img,mask,styled_sofa)
|
111 |
-
new_sofa = new_sofa.crop(box)
|
112 |
print('Finishing job', id)
|
113 |
-
return
|
114 |
|
115 |
demo = gr.Interface(
|
116 |
style_sofa,
|
|
|
102 |
mask = get_mask(resized_img)
|
103 |
#mask.save('mask.jpg')
|
104 |
# Created a styled sofa
|
105 |
+
# print('Styling sofa...')
|
106 |
+
# styled_sofa = create_styledSofa(resized_img,resized_style)
|
107 |
+
# #styled_sofa.save('styled_sofa.jpg')
|
108 |
+
# # postprocess the final image
|
109 |
+
# print('Replacing sofa...')
|
110 |
+
# new_sofa = replace_sofa(resized_img,mask,styled_sofa)
|
111 |
+
# new_sofa = new_sofa.crop(box)
|
112 |
print('Finishing job', id)
|
113 |
+
return mask
|
114 |
|
115 |
demo = gr.Interface(
|
116 |
style_sofa,
|