Spaces:
Runtime error
Runtime error
Download app.py from malvec/codebert_Malvec: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/spaces/malvec/codebert_Malvec/resolve/3466d4cf7dc046479fdc2087223fc7f1f4558848/app.py
- Command line
-
hf download hf://spaces/malvec/codebert_Malvec@3466d4cf7dc046479fdc2087223fc7f1f4558848/app.py
-
curl -L -o app.py https://huggingface.co/spaces/malvec/codebert_Malvec/resolve/3466d4cf7dc046479fdc2087223fc7f1f4558848/app.py
293 Bytes
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| app = FastAPI() | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| def home(): | |
| return {"message": "FastAPI Space is running!"} | |