Download sentimentAnalysis/main.py from unhive/sentiment_analysis: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/unhive/sentiment_analysis/resolve/main/sentimentAnalysis/main.py
- Command line
-
hf download hf://unhive/sentiment_analysis/sentimentAnalysis/main.py
-
curl -L -o main.py https://huggingface.co/unhive/sentiment_analysis/resolve/main/sentimentAnalysis/main.py
319 Bytes
| from fastapi import FastAPI | |
| from app.service import router as sentiment_analysis_router | |
| # Initialize FastAPI app | |
| app = FastAPI() | |
| # Include both APIs | |
| app.include_router(sentiment_analysis_router, prefix="/api", tags=["SentimentAnalyser"]) | |
| async def root(): | |
| return {"message": "Welcome to backend"} | |