Prathmesh48 commited on
Commit
0c47685
1 Parent(s): e979e0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,6 +10,7 @@ def list_files_and_folders():
10
  file_list.append(os.path.join(root, file))
11
  for dir in dirs:
12
  file_list.append(os.path.join(root, dir))
 
13
  return "\n".join(file_list)
14
  except Exception as e:
15
  return f"Error: {str(e)}"
@@ -18,7 +19,7 @@ def list_files_and_folders():
18
  iface = gr.Interface(
19
  fn=list_files_and_folders,
20
  inputs=None,
21
- outputs=gr.outputs.Textbox(),
22
  title="List Files and Folders in Current Directory"
23
  )
24
 
 
10
  file_list.append(os.path.join(root, file))
11
  for dir in dirs:
12
  file_list.append(os.path.join(root, dir))
13
+ print(file_list)
14
  return "\n".join(file_list)
15
  except Exception as e:
16
  return f"Error: {str(e)}"
 
19
  iface = gr.Interface(
20
  fn=list_files_and_folders,
21
  inputs=None,
22
+ outputs=gr.Textbox("ready"),
23
  title="List Files and Folders in Current Directory"
24
  )
25