fffiloni commited on
Commit
40a5fd5
1 Parent(s): 5bc9409

UI changes

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -128,7 +128,7 @@ def clear_result():
128
 
129
  css = """
130
  .gradio-container {
131
- width: 1800px !important;
132
  }
133
  """
134
 
@@ -147,22 +147,23 @@ with gr.Blocks(css=css) as demo:
147
  type="pil",
148
  label="Input Image",
149
  sources=["upload"],
 
 
150
  )
151
-
152
- target_ratio = gr.Radio(
153
- label = "Expected Ratio",
154
- choices = ["9:16", "16:9", "Custom"],
155
- value = "9:16"
156
- )
157
-
158
  with gr.Row():
159
- with gr.Column(scale=2):
160
- prompt_input = gr.Textbox(label="Prompt (Optional)")
161
- with gr.Column(scale=1):
162
- run_button = gr.Button("Generate")
 
 
 
163
 
164
  with gr.Accordion(label="Advanced settings", open=False) as settings_panel:
165
- with gr.Column():
166
  with gr.Row():
167
  width_slider = gr.Slider(
168
  label="Width",
 
128
 
129
  css = """
130
  .gradio-container {
131
+ width: 1200px !important;
132
  }
133
  """
134
 
 
147
  type="pil",
148
  label="Input Image",
149
  sources=["upload"],
150
+ width = 720,
151
+ height = 720
152
  )
153
+
154
+ prompt_input = gr.Textbox(label="Prompt (Optional)")
155
+
 
 
 
 
156
  with gr.Row():
157
+ target_ratio = gr.Radio(
158
+ label = "Expected Ratio",
159
+ choices = ["9:16", "16:9", "Custom"],
160
+ value = "9:16"
161
+ )
162
+
163
+ run_button = gr.Button("Generate")
164
 
165
  with gr.Accordion(label="Advanced settings", open=False) as settings_panel:
166
+ with gr.Column():
167
  with gr.Row():
168
  width_slider = gr.Slider(
169
  label="Width",