Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,27 +31,22 @@ def dropdown_change():
|
|
31 |
with gr.Blocks() as myface:
|
32 |
gr.HTML()
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
label="Choose Model",
|
39 |
choices=[m["name"] for m in models],
|
40 |
type="index",
|
41 |
value=current_model["name"],
|
42 |
interactive=True
|
43 |
-
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
model_name1,
|
51 |
-
gr.Row(run),
|
52 |
-
gr.Row(output1),
|
53 |
-
outputs=[output1]
|
54 |
-
)
|
55 |
model_name1.change(send_it, inputs=[input_text, model_name1], outputs=[output1])
|
56 |
run.click(send_it, inputs=[input_text, model_name1], outputs=[output1])
|
57 |
|
|
|
31 |
with gr.Blocks() as myface:
|
32 |
gr.HTML()
|
33 |
|
34 |
+
with gr.column():
|
35 |
+
with gr.Row():
|
36 |
+
input_text = gr.Textbox(label="Prompt idea", placeholder="", lines=1)
|
37 |
+
model_name1 = gr.Dropdown(
|
38 |
label="Choose Model",
|
39 |
choices=[m["name"] for m in models],
|
40 |
type="index",
|
41 |
value=current_model["name"],
|
42 |
interactive=True
|
43 |
+
)
|
44 |
|
45 |
+
run = gr.Button("Generate Images", variant="primary")
|
46 |
+
with gr.Row():
|
47 |
+
output1 = gr.Image(label="")
|
48 |
+
|
49 |
+
|
|
|
|
|
|
|
|
|
|
|
50 |
model_name1.change(send_it, inputs=[input_text, model_name1], outputs=[output1])
|
51 |
run.click(send_it, inputs=[input_text, model_name1], outputs=[output1])
|
52 |
|