/
pepler-sys
/
SE_FastAPI_Example
Обзор
Документация
Войти
/
pepler-sys
/
SE_FastAPI_Example
Код
Запросы
2
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
main.py
25 строк
518 B
iceman_bvb
update: main.py
12 май 2026, 20:54
Верифицирован
12 май 2026, 20:54
341cc7b
Код
Авторство
О чём код?
from fastapi import FastAPI from config import settings from routers import sentiment app = FastAPI(title="Sentiment Analysis API") # Подключение роутера app.include_router(sentiment.router) @app.get("/") def root(): return {"message": "FastAPI service with sentiment analysis. Use /sentiment endpoints"} if __name__ == "__main__": import uvicorn uvicorn.run( "main:app", host=settings.app_host, port=settings.app_port, reload=settings.debug )