Spaces:
Sleeping
Sleeping
Download app.py from lingyit1108/container_test: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/lingyit1108/container_test/resolve/main/app.py
- Command line
-
hf download hf://spaces/lingyit1108/container_test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/lingyit1108/container_test/resolve/main/app.py
270 Bytes
| from fastapi import FastAPI | |
| import os | |
| app = FastAPI() | |
| async def root(): | |
| try: | |
| file_ls_str = ", ".join(os.listdir("large_files")) | |
| except: | |
| file_ls_str = "NA" | |
| return {"message": f"Hello World! File list: {file_ls_str}"} |