webtest1s commited on
Commit
7c4888c
·
verified ·
1 Parent(s): fa97c25

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import gradio as gr
3
+
4
+ def debug():
5
+ return {
6
+ "exists": os.path.exists("/data"),
7
+ "is_dir": os.path.isdir("/data"),
8
+ "files": os.listdir("/data") if os.path.exists("/data") else "N/A"
9
+ }
10
+
11
+ gr.Interface(fn=debug, inputs=None, outputs="json").launch()