Spaces:
Sleeping
Sleeping
Download app/main.py from justKevv/recommendation-api: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/justKevv/recommendation-api/resolve/main/app/main.py
- Command line
-
hf download hf://spaces/justKevv/recommendation-api/app/main.py
-
curl -L -o main.py https://huggingface.co/spaces/justKevv/recommendation-api/resolve/main/app/main.py
443 Bytes
| from fastapi import FastAPI | |
| from .api.routes import recommendations | |
| app = FastAPI( | |
| title="Student Recommendation API", | |
| description="An API that uses machine learning to predict job categories and recommend internships.", | |
| version="1.0.0" | |
| ) | |
| app.include_router(recommendations.router, prefix="/api/v1") | |
| def read_root(): | |
| return {"message": "Welcome to the Student Recommendation API"} | |