Spaces:
Sleeping
Sleeping
Download app.py from dauduchieu/dae: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/dauduchieu/dae/resolve/main/app.py
- Command line
-
hf download hf://spaces/dauduchieu/dae/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dauduchieu/dae/resolve/main/app.py
397 Bytes
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| import routes.upload_file as upload_file_route | |
| app = FastAPI() | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_credentials=True, | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| app.include_router(upload_file_route.router) | |
| def hello(): | |
| return { "Hello": "World" } | |