JoPmt commited on
Commit
5b321d5
·
verified ·
1 Parent(s): d710c35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -7,10 +7,11 @@ def plex(sketchpad):
7
  apol.append(sketchpad)
8
  return apol
9
 
 
 
 
 
10
 
11
- sketchpad=gr.ImageEditor(type="pil",height=512,width=512,container=False,show_share_button=False,show_download_button=False)
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()