File size: 448 Bytes
ed83434
ce16d38
e9cb9ea
b74650f
 
e9cb9ea
 
 
 
 
 
 
 
 
 
 
b74650f
427d5cb
e9cb9ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os 
os.system("pip install --upgrade httpx")
import numpy as np
import gradio as gr

def flip_image(x):
    return np.fliplr(x)

with gr.Blocks() as demo:
    with gr.Tab(""):
        with gr.Row():
            image_input = gr.Image()
            image_output = gr.Image()
        image_button = gr.Button("Voltear")

    image_button.click(flip_image, inputs=image_input, outputs=image_output)

if __name__ == "__main__":
    demo.launch()