lzyhha commited on
Commit
77cc452
·
1 Parent(s): 7c1bf30
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -312,8 +312,8 @@ def create_demo(model):
312
 
313
  def generate_image(*inputs):
314
  images = []
315
- if grid_h.value + 1 != model.grid_h or grid_w != model.grid_w:
316
- print(grid_h.value, grid_w.value, model.grid_h, model.grid_w)
317
  raise gr.Error('Please wait for the loading to complete.')
318
  for i in range(model.grid_h):
319
  images.append([])
 
312
 
313
  def generate_image(*inputs):
314
  images = []
315
+ if grid_h.value + 1 != model.grid_h or grid_w.value != model.grid_w:
316
+ print(grid_h.value, grid_w.value, model.grid_h, model.grid_w, type(grid_h.value), type(model.grid_h))
317
  raise gr.Error('Please wait for the loading to complete.')
318
  for i in range(model.grid_h):
319
  images.append([])