Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,12 @@ def foo(dir):
|
|
36 |
|
37 |
# debug use
|
38 |
with gr.Blocks() as foo:
|
39 |
-
|
40 |
-
|
41 |
show = gr.Button(value="Show")
|
42 |
-
show.click(fn=foo, inputs=
|
|
|
|
|
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 |
|