Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def get_selected_item(selected_item):
|
|
| 23 |
interface_list = gr.Interface(
|
| 24 |
fn=list_files_and_subfolders,
|
| 25 |
inputs=None, # No inputs required
|
| 26 |
-
outputs=gr.
|
| 27 |
title="List Files and Subfolders",
|
| 28 |
description="Select a file or folder from the list.",
|
| 29 |
)
|
|
@@ -31,7 +31,7 @@ interface_list = gr.Interface(
|
|
| 31 |
# Gradio interface to get selected item path
|
| 32 |
interface_get_path = gr.Interface(
|
| 33 |
fn=get_selected_item,
|
| 34 |
-
inputs=gr.inputs.CheckboxGroup(label="Select Item", type="
|
| 35 |
outputs="text",
|
| 36 |
title="Get Selected Item Path",
|
| 37 |
description="Get the path of the selected file or folder.",
|
|
|
|
| 23 |
interface_list = gr.Interface(
|
| 24 |
fn=list_files_and_subfolders,
|
| 25 |
inputs=None, # No inputs required
|
| 26 |
+
outputs=gr.inputs.CheckboxGroup(label="Files and Subfolders", type="auto", options=["file", "directory"]),
|
| 27 |
title="List Files and Subfolders",
|
| 28 |
description="Select a file or folder from the list.",
|
| 29 |
)
|
|
|
|
| 31 |
# Gradio interface to get selected item path
|
| 32 |
interface_get_path = gr.Interface(
|
| 33 |
fn=get_selected_item,
|
| 34 |
+
inputs=gr.inputs.CheckboxGroup(label="Select Item", type="auto"),
|
| 35 |
outputs="text",
|
| 36 |
title="Get Selected Item Path",
|
| 37 |
description="Get the path of the selected file or folder.",
|