wcy1122 commited on
Commit
cdcc804
1 Parent(s): 506f788

update code

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- print(h, w, '=====')
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>'