Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -189,14 +189,6 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
189 |
|
190 |
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
191 |
|
192 |
-
with gr.Tab("Flip Image"):
|
193 |
-
with gr.Row():
|
194 |
-
image_input = gr.Image()
|
195 |
-
image_output = gr.Image(format="png")
|
196 |
-
with gr.Row():
|
197 |
-
image_button = gr.Button("Run", variant='primary')
|
198 |
-
image_button.click(flip_image, inputs=image_input, outputs=image_output)
|
199 |
-
|
200 |
with gr.Tab("Image Upscaler"):
|
201 |
with gr.Row():
|
202 |
with gr.Column():
|
@@ -207,4 +199,14 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
207 |
radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
|
208 |
iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
app.launch(show_api=False, share=False)
|
|
|
189 |
|
190 |
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
with gr.Tab("Image Upscaler"):
|
193 |
with gr.Row():
|
194 |
with gr.Column():
|
|
|
199 |
radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
|
200 |
iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
|
201 |
|
202 |
+
|
203 |
+
with gr.Tab("Flip Image"):
|
204 |
+
with gr.Row():
|
205 |
+
image_input = gr.Image()
|
206 |
+
image_output = gr.Image(format="png")
|
207 |
+
with gr.Row():
|
208 |
+
image_button = gr.Button("Run", variant='primary')
|
209 |
+
image_button.click(flip_image, inputs=image_input, outputs=image_output)
|
210 |
+
|
211 |
+
|
212 |
app.launch(show_api=False, share=False)
|