wave1 / app.py
Janeka's picture
Create app.py
fc34719 verified
raw
history blame contribute delete
374 Bytes
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()