DigiP-AI commited on
Commit
f6dbbba
·
verified ·
1 Parent(s): 9ad5696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -121,7 +121,7 @@ examples = [
121
 
122
  css = """
123
  #app-container {
124
- max-width: 896px;
125
  margin-left: auto;
126
  margin-right: auto;
127
 
@@ -179,21 +179,22 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
179
  text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
180
  clr_button =gr.Button("Clear prompt",variant="primary", elem_id="clear_button")
181
  clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt)
182
-
183
- with gr.Row():
184
- image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
185
-
186
- with gr.Row():
187
- clear_btn = gr.Button(value="Clear Image",variant="primary", elem_id="clear_button")
188
- clear_btn.click(clear, inputs=[ ], outputs=[image_output])
189
-
190
-
191
-
192
- gr.Examples(
193
- examples = examples,
194
- inputs = [text_prompt],
195
- )
196
-
 
197
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
198
 
199
 
 
121
 
122
  css = """
123
  #app-container {
124
+ max-width: auto;
125
  margin-left: auto;
126
  margin-right: auto;
127
 
 
179
  text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
180
  clr_button =gr.Button("Clear prompt",variant="primary", elem_id="clear_button")
181
  clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt)
182
+ with gr.Column(elem_id="image-container"):
183
+
184
+ with gr.Row():
185
+ image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
186
+
187
+ with gr.Row():
188
+ clear_btn = gr.Button(value="Clear Image",variant="primary", elem_id="clear_button")
189
+ clear_btn.click(clear, inputs=[ ], outputs=[image_output])
190
+
191
+
192
+
193
+ gr.Examples(
194
+ examples = examples,
195
+ inputs = [text_prompt],
196
+ )
197
+
198
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
199
 
200