Spaces:
Sleeping
Sleeping
import numpy as np | |
import gradio as gr | |
def flip_image(input_img): | |
# 使用 numpy 水平翻转图像 | |
flipped_image = np.fliplr(input_img) | |
return flipped_image | |
demo = gr.Interface(flip_image, gr.Image(), "image") | |
demo.launch(share=True) |