Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,12 @@ def foo(dir):
|
|
| 34 |
return [d.name for d in dir]
|
| 35 |
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
|
|
@@ -156,12 +162,6 @@ with gr.Blocks() as chatHistory:
|
|
| 156 |
show_btn.click(fn=show, inputs=None, outputs=show_out, queue=False)
|
| 157 |
|
| 158 |
|
| 159 |
-
# debug use
|
| 160 |
-
with gr.Blocks() as foo:
|
| 161 |
-
input = gr.File(file_count="directory")
|
| 162 |
-
files = gr.Textbox()
|
| 163 |
-
show = gr.Button(value="Show")
|
| 164 |
-
show.click(foo, input, files)
|
| 165 |
|
| 166 |
|
| 167 |
|
|
|
|
| 34 |
return [d.name for d in dir]
|
| 35 |
|
| 36 |
|
| 37 |
+
# debug use
|
| 38 |
+
with gr.Blocks() as foo:
|
| 39 |
+
input = gr.File(file_count="directory")
|
| 40 |
+
files = gr.Textbox()
|
| 41 |
+
show = gr.Button(value="Show")
|
| 42 |
+
show.click(foo, input=input, output=files)
|
| 43 |
|
| 44 |
|
| 45 |
|
|
|
|
| 162 |
show_btn.click(fn=show, inputs=None, outputs=show_out, queue=False)
|
| 163 |
|
| 164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
|
| 167 |
|