Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,13 +42,13 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
|
42 |
trans_prompt = gr.Button(value="Translate π", variant="secondary", size="sm", scale=2)
|
43 |
clear_prompt = gr.Button(value="Clear ποΈ", variant="secondary", size="sm", scale=1)
|
44 |
with gr.Row():
|
45 |
-
|
46 |
random_button = gr.Button("Random Model π²", variant="secondary", scale=3)
|
47 |
stop_button = gr.Button('Stop', interactive=True, variant="stop", scale=1)
|
48 |
#stop_button = gr.Button('Stop', variant='secondary', interactive=False, elem_id="stop_button")
|
49 |
|
50 |
|
51 |
-
|
52 |
stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button])
|
53 |
|
54 |
with gr.Group():
|
|
|
42 |
trans_prompt = gr.Button(value="Translate π", variant="secondary", size="sm", scale=2)
|
43 |
clear_prompt = gr.Button(value="Clear ποΈ", variant="secondary", size="sm", scale=1)
|
44 |
with gr.Row():
|
45 |
+
gen_button = gr.Button("Generate Image", variant="primary", scale=8)
|
46 |
random_button = gr.Button("Random Model π²", variant="secondary", scale=3)
|
47 |
stop_button = gr.Button('Stop', interactive=True, variant="stop", scale=1)
|
48 |
#stop_button = gr.Button('Stop', variant='secondary', interactive=False, elem_id="stop_button")
|
49 |
|
50 |
|
51 |
+
gen_button.click(on_generate_click, inputs=None, outputs=[gen_button, stop_button])
|
52 |
stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button])
|
53 |
|
54 |
with gr.Group():
|