flip_image / app.py
tangpan360's picture
Add
2ef7ec9
raw
history blame contribute delete
251 Bytes
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)