Sets: source="canvas", tool="sketch"
| 64 | |
| 65 | |
| 66 | class ImageMask(gr.components.Image): |
| 67 | """ |
| 68 | Sets: source="canvas", tool="sketch" |
| 69 | """ |
| 70 | |
| 71 | is_template = True |
| 72 | |
| 73 | def __init__(self, **kwargs): |
| 74 | super().__init__(source="upload", tool="sketch", interactive=True, **kwargs) |
| 75 | |
| 76 | def preprocess(self, x): |
| 77 | return super().preprocess(x) |
| 78 | |
| 79 | |
| 80 |