Spaces:
Runtime error
Runtime error
fix bugs.
Browse files
app.py
CHANGED
|
@@ -20,6 +20,7 @@ def process_multi_wrapper(rendered_txt_0, rendered_txt_1, rendered_txt_2, render
|
|
| 20 |
shared_ddim_steps, shared_guess_mode,
|
| 21 |
shared_strength, shared_scale, shared_seed,
|
| 22 |
shared_eta, shared_a_prompt, shared_n_prompt):
|
|
|
|
| 23 |
if not ALLOW_RUN_GENERATION:
|
| 24 |
return
|
| 25 |
|
|
@@ -53,7 +54,7 @@ def process_multi_wrapper_only_show_rendered(rendered_txt_0, rendered_txt_1, ren
|
|
| 53 |
shared_ddim_steps, shared_guess_mode,
|
| 54 |
shared_strength, shared_scale, shared_seed,
|
| 55 |
shared_eta, shared_a_prompt, shared_n_prompt):
|
| 56 |
-
|
| 57 |
rendered_txt_values = [rendered_txt_0, rendered_txt_1, rendered_txt_2, rendered_txt_3]
|
| 58 |
width_values = [width_0, width_1, width_2, width_3]
|
| 59 |
ratio_values = [ratio_0, ratio_1, ratio_2, ratio_3]
|
|
@@ -167,6 +168,7 @@ with block:
|
|
| 167 |
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
| 168 |
|
| 169 |
with gr.Row():
|
|
|
|
| 170 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
| 171 |
|
| 172 |
run_button.click(fn=process_multi_wrapper,
|
|
|
|
| 20 |
shared_ddim_steps, shared_guess_mode,
|
| 21 |
shared_strength, shared_scale, shared_seed,
|
| 22 |
shared_eta, shared_a_prompt, shared_n_prompt):
|
| 23 |
+
global ALLOW_RUN_GENERATION
|
| 24 |
if not ALLOW_RUN_GENERATION:
|
| 25 |
return
|
| 26 |
|
|
|
|
| 54 |
shared_ddim_steps, shared_guess_mode,
|
| 55 |
shared_strength, shared_scale, shared_seed,
|
| 56 |
shared_eta, shared_a_prompt, shared_n_prompt):
|
| 57 |
+
global ALLOW_RUN_GENERATION
|
| 58 |
rendered_txt_values = [rendered_txt_0, rendered_txt_1, rendered_txt_2, rendered_txt_3]
|
| 59 |
width_values = [width_0, width_1, width_2, width_3]
|
| 60 |
ratio_values = [ratio_0, ratio_1, ratio_2, ratio_3]
|
|
|
|
| 168 |
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
| 169 |
|
| 170 |
with gr.Row():
|
| 171 |
+
message = gr.outputs.Textbox()
|
| 172 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
| 173 |
|
| 174 |
run_button.click(fn=process_multi_wrapper,
|