Merge pull request #49 from oxbridge-econ/dev
Browse files- app/app.py +2 -2
- app/routes/{lda.py → topics.py} +1 -1
app/app.py
CHANGED
|
@@ -10,7 +10,7 @@ from fastapi.responses import JSONResponse
|
|
| 10 |
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
| 11 |
from apscheduler.triggers.cron import CronTrigger
|
| 12 |
|
| 13 |
-
from routes import category, summary, keyword,
|
| 14 |
|
| 15 |
|
| 16 |
class Config: # pylint: disable=too-few-public-methods
|
|
@@ -171,7 +171,7 @@ app.add_middleware(
|
|
| 171 |
app.include_router(category.router)
|
| 172 |
app.include_router(summary.router)
|
| 173 |
app.include_router(keyword.router)
|
| 174 |
-
app.include_router(
|
| 175 |
app.include_router(entity.router)
|
| 176 |
|
| 177 |
@app.get("/_health")
|
|
|
|
| 10 |
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
| 11 |
from apscheduler.triggers.cron import CronTrigger
|
| 12 |
|
| 13 |
+
from routes import category, summary, keyword, topics, entity # pylint: disable=import-error
|
| 14 |
|
| 15 |
|
| 16 |
class Config: # pylint: disable=too-few-public-methods
|
|
|
|
| 171 |
app.include_router(category.router)
|
| 172 |
app.include_router(summary.router)
|
| 173 |
app.include_router(keyword.router)
|
| 174 |
+
app.include_router(topics.router)
|
| 175 |
app.include_router(entity.router)
|
| 176 |
|
| 177 |
@app.get("/_health")
|
app/routes/{lda.py → topics.py}
RENAMED
|
@@ -10,7 +10,7 @@ from collectors.finfast.lda import collect as run_lda_pipeline # pylint: disable
|
|
| 10 |
logger = logging.getLogger(__name__)
|
| 11 |
|
| 12 |
# Create FastAPI Router
|
| 13 |
-
router = APIRouter(prefix="/
|
| 14 |
|
| 15 |
def run_lda_pipeline_background():
|
| 16 |
"""
|
|
|
|
| 10 |
logger = logging.getLogger(__name__)
|
| 11 |
|
| 12 |
# Create FastAPI Router
|
| 13 |
+
router = APIRouter(prefix="/topics", tags=["topics"])
|
| 14 |
|
| 15 |
def run_lda_pipeline_background():
|
| 16 |
"""
|