ikmalsaid commited on
Commit
b51e7a3
1 Parent(s): e92c9b7

added/updated app files

Browse files
app_anime.py CHANGED
@@ -29,8 +29,8 @@ with ui.Blocks(css=css, title=title(feature), theme=theme, analytics_enabled=Fal
29
  seedtype_anime = ui.Dropdown(label='Seed type:', choices=['Randomized', 'Fixed'], value='Randomized', filterable=False)
30
  seedno_anime = ui.Number(label='Seed value:', value=0, minimum=0, maximum=max_seed, visible=False)
31
 
32
- process_anime = submit_anime.click(fn=quads_anime, inputs=[prompt_anime, model_anime, style_anime, ratio_anime, quality_anime, smart_anime, seedtype_anime, seedno_anime], outputs=[result_anime, result_anime])
33
- prompt_anime.submit(fn=quads_anime, inputs=[prompt_anime, model_anime, style_anime, ratio_anime, quality_anime, smart_anime, seedtype_anime, seedno_anime], outputs=[result_anime, result_anime])
34
  seedtype_anime.select(fn=seeds, inputs=seedtype_anime, outputs=seedno_anime)
35
 
36
  if __name__ == "__main__":
 
29
  seedtype_anime = ui.Dropdown(label='Seed type:', choices=['Randomized', 'Fixed'], value='Randomized', filterable=False)
30
  seedno_anime = ui.Number(label='Seed value:', value=0, minimum=0, maximum=max_seed, visible=False)
31
 
32
+ process_anime = submit_anime.click(fn=queue_anime, inputs=[prompt_anime, model_anime, style_anime, ratio_anime, quality_anime, smart_anime, seedtype_anime, seedno_anime], outputs=[result_anime, result_anime])
33
+ prompt_anime.submit(fn=queue_anime, inputs=[prompt_anime, model_anime, style_anime, ratio_anime, quality_anime, smart_anime, seedtype_anime, seedno_anime], outputs=[result_anime, result_anime])
34
  seedtype_anime.select(fn=seeds, inputs=seedtype_anime, outputs=seedno_anime)
35
 
36
  if __name__ == "__main__":
modules/engine_anime.py CHANGED
@@ -81,7 +81,7 @@ def gen_anime(prompt, model, style, size, quality, seed_type, seed_num):
81
  ui.Warning(message=single_error)
82
  return None
83
 
84
- def quads_anime(a, b, c, d, e, f, g, h, progress=ui.Progress()):
85
  if g == 'Randomized': quantities = 2
86
  else: quantities = 1
87
 
 
81
  ui.Warning(message=single_error)
82
  return None
83
 
84
+ def queue_anime(a, b, c, d, e, f, g, h, progress=ui.Progress()):
85
  if g == 'Randomized': quantities = 2
86
  else: quantities = 1
87
 
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...'