Spaces:
Runtime error
Runtime error
add message output
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def process_multi_wrapper(rendered_txt_0, rendered_txt_1, rendered_txt_2, render
|
|
22 |
shared_eta, shared_a_prompt, shared_n_prompt):
|
23 |
global ALLOW_RUN_GENERATION
|
24 |
if not ALLOW_RUN_GENERATION:
|
25 |
-
return
|
26 |
|
27 |
rendered_txt_values = [rendered_txt_0, rendered_txt_1, rendered_txt_2, rendered_txt_3]
|
28 |
width_values = [width_0, width_1, width_2, width_3]
|
@@ -168,7 +168,7 @@ with block:
|
|
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,
|
|
|
22 |
shared_eta, shared_a_prompt, shared_n_prompt):
|
23 |
global ALLOW_RUN_GENERATION
|
24 |
if not ALLOW_RUN_GENERATION:
|
25 |
+
return ["please get the glyph image first by clicking the 'Only Rendered' button"]
|
26 |
|
27 |
rendered_txt_values = [rendered_txt_0, rendered_txt_1, rendered_txt_2, rendered_txt_3]
|
28 |
width_values = [width_0, width_1, width_2, width_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,
|