| import gradio as gr | |
| def paint_canvas(image): | |
| return image | |
| iface = gr.Interface( | |
| fn=paint_canvas, | |
| inputs="sketchpad", | |
| outputs="image", | |
| live=True, | |
| title="Paint Canvas", | |
| description="Draw something on the canvas and see it displayed below!", | |
| theme="Felguk/Felguk_theme" | |
| ) | |
| iface.launch() |