Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,8 @@ def foo(something):
|
|
| 8 |
ret.append(filename)
|
| 9 |
return ret
|
| 10 |
|
| 11 |
-
|
| 12 |
-
with gr.Blocks() as foo:
|
| 13 |
-
filein = gr.File(file_count="directory")
|
| 14 |
-
show_out = gr.Textbox()
|
| 15 |
-
show = gr.Button(value="Show")
|
| 16 |
-
show.click(fn=foo, inputs=filein, outputs=show_out, queue=False)
|
| 17 |
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
| 8 |
ret.append(filename)
|
| 9 |
return ret
|
| 10 |
|
| 11 |
+
pinecone = gr.Interface(fn=foo, inputs=gr.inputs.File(file_count="directory"), outputs="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
+
|
| 15 |
+
pinecone.launch()
|