Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -186,16 +186,5 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
186 |
|
187 |
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
188 |
|
189 |
-
with gr.Tab("Flip Image"):
|
190 |
-
|
191 |
-
def flip_image(x):
|
192 |
-
return np.fliplr(x)
|
193 |
-
with gr.Row():
|
194 |
-
image_input = gr.Image(type="numpy", label="Upload 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 |
|
201 |
app.launch(show_api=False, share=False)
|
|
|
186 |
|
187 |
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
app.launch(show_api=False, share=False)
|