Spaces:
Runtime error
Runtime error
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() |