Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,11 @@ def plex(sketchpad):
|
|
| 7 |
apol.append(sketchpad)
|
| 8 |
return apol
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
| 12 |
-
sketchpad.change(fn=plex).input()
|
| 13 |
-
|
| 14 |
-
iface=gr.Interface(plex,sketchpad,gr.Gallery(columns=1),live=True)
|
| 15 |
|
| 16 |
iface.launch()
|
|
|
|
| 7 |
apol.append(sketchpad)
|
| 8 |
return apol
|
| 9 |
|
| 10 |
+
with gr.Blocks() as iface:
|
| 11 |
+
sketchpad=gr.ImageEditor(type="pil",height=512,width=512,container=False,show_share_button=False,show_download_button=False)
|
| 12 |
+
gal=gr.Gallery(columns=1)
|
| 13 |
+
sketchpad.change(plex,sketchpad,gal).input()
|
| 14 |
|
| 15 |
+
##iface=gr.Interface(plex,sketchpad,gr.Gallery(columns=1),live=True)
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
iface.launch()
|