lzyhha commited on
Commit
ca2a7fd
·
verified ·
1 Parent(s): 1de876f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -333,7 +333,7 @@ def create_demo(model):
333
  images[i].append(inputs[i * max_grid_w + j])
334
  if i != model.grid_h - 1:
335
  if inputs[i * max_grid_w + j] is None:
336
- raise gr.Error('Please upload in-context examples. Possible that the task examples have not finished loading yet.')
337
  seed, cfg, steps, upsampling_steps, upsampling_noise, layout_text, task_text, content_text = inputs[-8:]
338
 
339
  try:
@@ -344,7 +344,7 @@ def create_demo(model):
344
  upsampling_steps=upsampling_steps, upsampling_noise=upsampling_noise
345
  )
346
  except Exception as e:
347
- raise gr.Error('Process error. Possible that the task examples have not finished loading yet. Error: ' + str(e))
348
 
349
  output = gr.update(
350
  elem_id='output_gallery',
 
333
  images[i].append(inputs[i * max_grid_w + j])
334
  if i != model.grid_h - 1:
335
  if inputs[i * max_grid_w + j] is None:
336
+ raise gr.Error('Please upload in-context examples. Possible that the task examples have not finished loading yet, and you can try waiting a few seconds before clicking the button again.')
337
  seed, cfg, steps, upsampling_steps, upsampling_noise, layout_text, task_text, content_text = inputs[-8:]
338
 
339
  try:
 
344
  upsampling_steps=upsampling_steps, upsampling_noise=upsampling_noise
345
  )
346
  except Exception as e:
347
+ raise gr.Error('Process error. Possible that the task examples have not finished loading yet, and you can try waiting a few seconds before clicking the button again. Error: ' + str(e))
348
 
349
  output = gr.update(
350
  elem_id='output_gallery',