Spaces:
Runtime error
Runtime error
Download main.py from utkarsh134/FastAPIExperience2: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/spaces/utkarsh134/FastAPIExperience2/resolve/b5d4ab479501feeea472b38ce0ccbeda9b9ebf6f/main.py
- Command line
-
hf download hf://spaces/utkarsh134/FastAPIExperience2@b5d4ab479501feeea472b38ce0ccbeda9b9ebf6f/main.py
-
curl -L -o main.py https://huggingface.co/spaces/utkarsh134/FastAPIExperience2/resolve/b5d4ab479501feeea472b38ce0ccbeda9b9ebf6f/main.py
563 Bytes
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| from api.routes import router as api_router | |
| from config.settings import init_settings | |
| app = FastAPI( | |
| title="Relevant Experience Analyzer", | |
| description="API for extracting job-relevant experience from resumes using semantic search", | |
| version="1.0.0" | |
| ) | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_credentials=True, | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| init_settings() | |
| app.include_router(api_router) |