Space
wdtest-a/ptest-storage
Upload app.py with huggingface_hub
wdtest-a committed on October 19, 2026
14da5c7bd537858348a95b501be6fec3577e2680Parent d01dcfcBrowse files
1 file changed+5 -0
app.py
Added+5 -0
app.py
Added+5 -0
| @@ -0,0 +1,5 @@ | |||
| 1 | Added: import gradio as gr, os | ||
| 2 | Added: os.makedirs("/data", exist_ok=True) | ||
| 3 | Added: with open("/data/x","a") as f: f.write("boot\n") | ||
| 4 | Added: def r(_): return open("/data/x").read() + "|ls=" + ",".join(os.listdir("/data")) + "|HF_HOME=" + os.environ.get("HF_HOME","") | ||
| 5 | Added: gr.Interface(r, "text", "text", api_name="predict").launch(server_name="0.0.0.0") | ||