Create app.py
Browse files
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()
|