Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,6 @@ with gr.Blocks() as demo:
|
|
48 |
txt_input2 = gr.Textbox(label = 'Your prompt:')
|
49 |
|
50 |
max_images = 6
|
51 |
-
num_images = gr.Slider(1, max_images, value = 1, step = 1, label = 'Number of images')
|
52 |
|
53 |
gen_button2 = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
54 |
stop_button2 = gr.Button('Stop', variant = 'secondary', interactive = False)
|
@@ -75,6 +74,7 @@ with gr.Blocks() as demo:
|
|
75 |
num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
76 |
gen_event2 = gen_button2.click(lambda i, n, m, t: gen_fn(m, t) if (i < n) else None, [img_i, num_images, model_choice2, txt_input2], o)
|
77 |
stop_button2.click(lambda s: gr.update(interactive = False), None, stop_button2, cancels = [gen_event2])
|
|
|
78 |
with gr.Row():
|
79 |
gr.HTML(
|
80 |
"""
|
|
|
48 |
txt_input2 = gr.Textbox(label = 'Your prompt:')
|
49 |
|
50 |
max_images = 6
|
|
|
51 |
|
52 |
gen_button2 = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
53 |
stop_button2 = gr.Button('Stop', variant = 'secondary', interactive = False)
|
|
|
74 |
num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
75 |
gen_event2 = gen_button2.click(lambda i, n, m, t: gen_fn(m, t) if (i < n) else None, [img_i, num_images, model_choice2, txt_input2], o)
|
76 |
stop_button2.click(lambda s: gr.update(interactive = False), None, stop_button2, cancels = [gen_event2])
|
77 |
+
num_images = gr.Slider(1, max_images, value = 1, step = 1, label = 'Number of images')
|
78 |
with gr.Row():
|
79 |
gr.HTML(
|
80 |
"""
|