udayjawheri commited on
Commit
7fa11a1
·
verified ·
1 Parent(s): 95c2369

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.outputs.CheckboxGroup(label="Files and Subfolders"),
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="file"),
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.",