ikmalsaid commited on
Commit
4d63716
1 Parent(s): f3896f1

added/updated app files

Browse files
modules/engine_inpaint.py CHANGED
@@ -48,7 +48,7 @@ def inpaint(input_image, input_mask, prompt):
48
  ui.Warning(message=single_error)
49
  return None
50
 
51
- def quads_inpaint(a, b, c, progress=ui.Progress()):
52
  quantities = 2
53
  result_list = [None] * quantities
54
  percent = 0
@@ -74,7 +74,7 @@ def quads_inpaint(a, b, c, progress=ui.Progress()):
74
 
75
  def submit(a, b, c):
76
  # input, output, submit, try again, inpaint
77
- return ui.ImageEditor(visible=False), ui.Gallery(visible=True), ui.Button(visible=False), ui.Button(visible=True), quads_inpaint(a, b, c)
78
 
79
  def reset():
80
  # input, output, submit, try again
 
48
  ui.Warning(message=single_error)
49
  return None
50
 
51
+ def queue_inpaint(a, b, c, progress=ui.Progress()):
52
  quantities = 2
53
  result_list = [None] * quantities
54
  percent = 0
 
74
 
75
  def submit(a, b, c):
76
  # input, output, submit, try again, inpaint
77
+ return ui.ImageEditor(visible=False), ui.Gallery(visible=True), ui.Button(visible=False), ui.Button(visible=True), queue_inpaint(a, b, c)
78
 
79
  def reset():
80
  # input, output, submit, try again
modules/service_configs.py CHANGED
@@ -13,7 +13,7 @@ theme = ui.themes.Default(
13
  # global locale - english
14
  success = 'That worked successfully!'
15
  single_error = 'That did not work!'
16
- quads_error = 'Some images cannot be processed!'
17
  empty_error = 'Prompt field cannot be empty!'
18
  pf_error = 'Prompt fusion error. Proceeding...'
19
  pe_error = 'Prompt expansion error. Proceeding...'
 
13
  # global locale - english
14
  success = 'That worked successfully!'
15
  single_error = 'That did not work!'
16
+ queue_error = 'Some images cannot be processed!'
17
  empty_error = 'Prompt field cannot be empty!'
18
  pf_error = 'Prompt fusion error. Proceeding...'
19
  pe_error = 'Prompt expansion error. Proceeding...'