File size: 374 Bytes
fc34719
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
from distort import apply_wave_effect

def distort_image(image):
    return apply_wave_effect(image)

demo = gr.Interface(
    fn=distort_image,
    inputs=gr.Image(type="pil"),
    outputs="image",
    title="Paper Wave Distortion",
    description="Upload an image and apply wave-like paper distortion."
)

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