noes14155 commited on
Commit
b6dd4a0
·
1 Parent(s): 16053e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -15
app.py CHANGED
@@ -31,27 +31,22 @@ def dropdown_change():
31
  with gr.Blocks() as myface:
32
  gr.HTML()
33
 
34
-
35
- input_text = gr.Textbox(label="Prompt idea", placeholder="", lines=1)
36
- # Model selection dropdown
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
- output1 = gr.Image(label="")
47
-
48
- gr.Column(
49
- input_text,
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