flip_image / flip_image.py
tangpan360
Add application file
a286203
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)