Spaces:
Runtime error
Runtime error
update code
Browse files
app.py
CHANGED
@@ -219,8 +219,7 @@ def add_text(state, imagebox, textbox, image_process_mode, gen_image):
|
|
219 |
gen_image = 'Yes'
|
220 |
elif 'show me one idea of what i could make with this?' in textbox.lower() and imagebox is not None:
|
221 |
h, w = image.size
|
222 |
-
|
223 |
-
if h == 922 and w == 672:
|
224 |
gen_image = 'Yes'
|
225 |
if gen_image == 'Yes':
|
226 |
textbox = textbox + ' <GEN>'
|
|
|
219 |
gen_image = 'Yes'
|
220 |
elif 'show me one idea of what i could make with this?' in textbox.lower() and imagebox is not None:
|
221 |
h, w = image.size
|
222 |
+
if h == 1505 and w == 1096:
|
|
|
223 |
gen_image = 'Yes'
|
224 |
if gen_image == 'Yes':
|
225 |
textbox = textbox + ' <GEN>'
|