Spaces:
Runtime error
Runtime error
Iwaku-Real
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -130,9 +130,11 @@ 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 |
-
gr.Markdown(elem_id="resolution", value="
|
|
|
|
|
136 |
|
137 |
with gr.Column(scale=1):
|
138 |
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=1)
|
134 |
+
height = gr.Slider(label="Height", minimum=512, maximum=1536, value=1024, step=1)
|
135 |
+
gr.Markdown(elem_id="resolution", value="*Max Resolution: 1.1MP (1,100,000px)*")
|
136 |
+
if width*height < 1_100_000:
|
137 |
+
gr.Markdown(elem_id="resError", value="### ⚠️ Res too big!")
|
138 |
|
139 |
with gr.Column(scale=1):
|
140 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|