DigiP-AI commited on
Commit
d35a35a
·
verified ·
1 Parent(s): 9e19cab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -187,11 +187,7 @@ examples = [
187
  # CSS to style the app
188
  css = """
189
  .gradio-container {background-color: MediumAquaMarine}
190
- #app-container {
191
- max-width: 930px;
192
- margin-left: auto;
193
- margin-right: auto;
194
- }
195
  footer {
196
  visibility: hidden;
197
  }
@@ -199,6 +195,7 @@ footer {
199
 
200
  with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
201
  with gr.Tab("Basic Settings"):
 
202
  with gr.Row():
203
  prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, scale=6, show_copy_button = True)
204
  with gr.Row():
@@ -228,9 +225,9 @@ with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
228
  with gr.Row():
229
  height = gr.Slider(label="Height", minimum=512, maximum=2048, step=8, value=1152,interactive=True,)
230
 
231
- with gr.Column(scale=4):
232
  text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
233
- with gr.Column(scale=4):
234
  image_output = gr.Image(show_download_button=True, interactive=False, label='Generated Image 🌄', show_share_button=False, show_fullscreen_button=True, format="png", elem_id="gallery")
235
 
236
  text_button.click(query, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width, height], outputs=image_output, concurrency_limit=48)
 
187
  # CSS to style the app
188
  css = """
189
  .gradio-container {background-color: MediumAquaMarine}
190
+
 
 
 
 
191
  footer {
192
  visibility: hidden;
193
  }
 
195
 
196
  with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
197
  with gr.Tab("Basic Settings"):
198
+ with gr.Column(scale=0):
199
  with gr.Row():
200
  prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, scale=6, show_copy_button = True)
201
  with gr.Row():
 
225
  with gr.Row():
226
  height = gr.Slider(label="Height", minimum=512, maximum=2048, step=8, value=1152,interactive=True,)
227
 
228
+ with gr.Column(scale=0):
229
  text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
230
+ with gr.Column(scale=0):
231
  image_output = gr.Image(show_download_button=True, interactive=False, label='Generated Image 🌄', show_share_button=False, show_fullscreen_button=True, format="png", elem_id="gallery")
232
 
233
  text_button.click(query, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width, height], outputs=image_output, concurrency_limit=48)