renee127 commited on
Commit
ae428b2
·
1 Parent(s): 201118f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import numpy as np
3
+
4
+ # Simple function to flip an image upside down
5
+ def flip_image(image):
6
+ image_output = np.flipud(image)
7
+ return image_output
8
+
9
+ # Create a simple GUI
10
+ gr.Interface(fn=flip_image,
11
+ inputs="image",
12
+ outputs="image",
13
+ title="Flip An Image Upside Down",
14
+ examples = ["ai_images.png"]
15
+ ).launch();