Spaces:
Runtime error
Runtime error
Download main.py from utkarsh134/FastAPIExperience2: direct link, hf CLI and curl.
- Browser
- Download file 669 Bytes
-
https://huggingface.co/spaces/utkarsh134/FastAPIExperience2/resolve/main/main.py
- Command line
-
hf download hf://spaces/utkarsh134/FastAPIExperience2/main.py
-
curl -L -o main.py https://huggingface.co/spaces/utkarsh134/FastAPIExperience2/resolve/main/main.py
669 Bytes
| import uvicorn | |
| 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="Resume & Audio Experience Analyzer", | |
| description="API for analyzing resumes and audio recordings using semantic search and speech analysis", | |
| version="1.0.0" | |
| ) | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_credentials=True, | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=8000) | |
| init_settings() | |
| app.include_router(api_router) |