Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,11 +46,11 @@ def gen_fn(model_str, prompt):
|
|
| 46 |
def make_me():
|
| 47 |
# with gr.Tab('The Dream'):
|
| 48 |
with gr.Row():
|
| 49 |
-
txt_input = gr.Textbox(lines=2, value=kii)
|
| 50 |
#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
|
| 51 |
-
|
| 52 |
-
gen_button = gr.Button('Generate images',
|
| 53 |
-
stop_button = gr.Button('Stop', variant='secondary', interactive=False,
|
| 54 |
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
| 55 |
#gr.HTML("""
|
| 56 |
# <div style="text-align: center; max-width: 100%; margin: 0 auto;">
|
|
@@ -61,7 +61,7 @@ def make_me():
|
|
| 61 |
# </div>
|
| 62 |
#""")
|
| 63 |
with gr.Row():
|
| 64 |
-
output = [gr.Image(label=m, min_width=
|
| 65 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
| 66 |
for m, o in zip(current_models, output):
|
| 67 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
|
|
|
| 46 |
def make_me():
|
| 47 |
# with gr.Tab('The Dream'):
|
| 48 |
with gr.Row():
|
| 49 |
+
txt_input = gr.Textbox(lines=2, value=kii, width=300)
|
| 50 |
#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
|
| 51 |
+
|
| 52 |
+
gen_button = gr.Button('Generate images', width=150)
|
| 53 |
+
stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150)
|
| 54 |
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
| 55 |
#gr.HTML("""
|
| 56 |
# <div style="text-align: center; max-width: 100%; margin: 0 auto;">
|
|
|
|
| 61 |
# </div>
|
| 62 |
#""")
|
| 63 |
with gr.Row():
|
| 64 |
+
output = [gr.Image(label=m, min_width=160, height=160) for m in default_models]
|
| 65 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
| 66 |
for m, o in zip(current_models, output):
|
| 67 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|