Spaces:
Runtime error
Runtime error
Commit ·
9d23916
1
Parent(s): 5bb086c
app.py: allow custom resolutions (#7)
Browse files- app.py: allow custom resolutions (edf0815edf9d893714d126fb3531b3a6c5a5dfda)
- app.py: move to Markdown note (5dda582ff721c86b7b6d011fa68a51a0063965bc)
app.py
CHANGED
|
@@ -130,8 +130,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 130 |
|
| 131 |
with gr.Row():
|
| 132 |
with gr.Column(scale=1):
|
| 133 |
-
width = gr.Slider(label="Width", minimum=
|
| 134 |
-
height = gr.Slider(label="Height", minimum=
|
|
|
|
| 135 |
|
| 136 |
with gr.Column(scale=1):
|
| 137 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|
|
|
|
| 130 |
|
| 131 |
with gr.Row():
|
| 132 |
with gr.Column(scale=1):
|
| 133 |
+
width = gr.Slider(label="Width", minimum=512, maximum=1536, value=1024, step=8)
|
| 134 |
+
height = gr.Slider(label="Height", minimum=512, maximum=1536, value=1024, step=8)
|
| 135 |
+
gr.Markdown(elem_id="resolution", value="*Resolution Maximum: 1MP (1048576 px)*")
|
| 136 |
|
| 137 |
with gr.Column(scale=1):
|
| 138 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|