flip_image / app.py
renee127's picture
Update app.py
b69cc99
raw
history blame contribute delete
399 Bytes
import gradio as gr
import numpy as np
# Simple function to flip an image upside down
def flip_image(image):
image_output = np.flipud(image)
return image_output
# Create a simple GUI
gr.Interface(fn=flip_image,
inputs="image",
outputs="image",
title="Flip An Image Upside Down",
examples = ["ai_images.png"]
).launch();