jozzy commited on
Commit
48e6e47
1 Parent(s): b404fa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -36,10 +36,12 @@ def foo(dir):
36
 
37
  # debug use
38
  with gr.Blocks() as foo:
39
- i = gr.File(file_count="directory")
40
- o = gr.Textbox()
41
  show = gr.Button(value="Show")
42
- show.click(fn=foo, inputs=i, outputs=o)
 
 
43
 
44
 
45
 
 
36
 
37
  # debug use
38
  with gr.Blocks() as foo:
39
+ filein = gr.File(file_count="directory")
40
+ show_out = gr.Textbox()
41
  show = gr.Button(value="Show")
42
+ show.click(fn=foo, inputs=filein, outputs=show_out, queue=False)
43
+
44
+
45
 
46
 
47