Spaces:
Sleeping
Sleeping
Prathmesh48
commited on
Commit
•
e979e0d
1
Parent(s):
23b62b8
Update app.py
Browse files
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 |
-
#
|
18 |
-
output_text = list_files_and_folders()
|
19 |
-
|
20 |
-
# Define the Gradio interface to display the output text
|
21 |
iface = gr.Interface(
|
22 |
-
fn=
|
23 |
inputs=None,
|
24 |
-
outputs=gr.outputs.Textbox(
|
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 |
|