Spaces:
Running
on
Zero
Running
on
Zero
UI changes
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def clear_result():
|
|
128 |
|
129 |
css = """
|
130 |
.gradio-container {
|
131 |
-
width:
|
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 |
-
|
153 |
-
|
154 |
-
choices = ["9:16", "16:9", "Custom"],
|
155 |
-
value = "9:16"
|
156 |
-
)
|
157 |
-
|
158 |
with gr.Row():
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
|
|
|
|
|
|
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",
|