Prathmesh48 commited on
Commit
e979e0d
1 Parent(s): 23b62b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -14,14 +14,11 @@ def list_files_and_folders():
14
  except Exception as e:
15
  return f"Error: {str(e)}"
16
 
17
- # Display the current working directory's contents
18
- output_text = list_files_and_folders()
19
-
20
- # Define the Gradio interface to display the output text
21
  iface = gr.Interface(
22
- fn=lambda: output_text,
23
  inputs=None,
24
- outputs=gr.outputs.Textbox(label="Files and folders in current directory"),
25
  title="List Files and Folders in Current Directory"
26
  )
27
 
 
14
  except Exception as e:
15
  return f"Error: {str(e)}"
16
 
17
+ # Define the Gradio interface
 
 
 
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