multimodalart HF staff commited on
Commit
a1c2ce2
1 Parent(s): 73d3bf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -37,6 +37,9 @@ def infer(prompt, negative, scale):
37
 
38
 
39
  css = """
 
 
 
40
  .gradio-container {
41
  font-family: 'IBM Plex Sans', sans-serif;
42
  }
@@ -256,7 +259,7 @@ with block:
256
  with gr.Group():
257
  with gr.Box():
258
  with gr.Row(elem_id="prompt-container"):
259
- with gr.Column():
260
  text = gr.Textbox(
261
  label="Enter your prompt",
262
  show_label=False,
@@ -271,7 +274,8 @@ with block:
271
  placeholder="Enter a negative prompt",
272
  elem_id="negative-prompt-text-input",
273
  )
274
- btn = gr.Button("Generate image")
 
275
 
276
  gallery = gr.Gallery(
277
  label="Generated images", show_label=False, elem_id="gallery"
 
37
 
38
 
39
  css = """
40
+ .gradio-container {
41
+ max-width: 768px !important;
42
+ }
43
  .gradio-container {
44
  font-family: 'IBM Plex Sans', sans-serif;
45
  }
 
259
  with gr.Group():
260
  with gr.Box():
261
  with gr.Row(elem_id="prompt-container"):
262
+ with gr.Column(scale=3):
263
  text = gr.Textbox(
264
  label="Enter your prompt",
265
  show_label=False,
 
274
  placeholder="Enter a negative prompt",
275
  elem_id="negative-prompt-text-input",
276
  )
277
+ with gr.Column(scale=1):
278
+ btn = gr.Button("Generate image")
279
 
280
  gallery = gr.Gallery(
281
  label="Generated images", show_label=False, elem_id="gallery"