Update app.py
Browse files
app.py
CHANGED
@@ -164,12 +164,12 @@ with gr.Blocks() as demo:
|
|
164 |
alue=600, # Replace with defaults that work for your model
|
165 |
)
|
166 |
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
)
|
174 |
|
175 |
with gr.Row():
|
@@ -189,7 +189,7 @@ with gr.Blocks() as demo:
|
|
189 |
value=15, # Replace with defaults that work for your model
|
190 |
)
|
191 |
|
192 |
-
|
193 |
gr.on(
|
194 |
triggers=[run_button.click, prompt.submit],
|
195 |
fn=infer,
|
|
|
164 |
alue=600, # Replace with defaults that work for your model
|
165 |
)
|
166 |
|
167 |
+
height = gr.Slider(
|
168 |
+
label="Height",
|
169 |
+
minimum=0,
|
170 |
+
maximum=MAX_IMAGE_SIZE,
|
171 |
+
step=8,
|
172 |
+
value=752, # Replace with defaults that work for your model
|
173 |
)
|
174 |
|
175 |
with gr.Row():
|
|
|
189 |
value=15, # Replace with defaults that work for your model
|
190 |
)
|
191 |
|
192 |
+
gr.Examples(examples=examples, inputs=[prompt])
|
193 |
gr.on(
|
194 |
triggers=[run_button.click, prompt.submit],
|
195 |
fn=infer,
|