Spaces:
Running
Running
File size: 881 Bytes
6b0062b f644b65 a6cfe19 6b0062b a6cfe19 6b0062b f644b65 a6cfe19 6b0062b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from src.scipeerai.api.routes import router
def create_app() -> FastAPI:
app = FastAPI(
title="SciPeerAI",
description=(
"Automated Scientific Integrity & Peer Review Analysis. "
"Upload paper text and get back a structured integrity report."
),
version="0.1.0",
)
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(router)
@app.get("/", tags=["System"])
def health_check():
return {
"status": "online",
"system": "SciPeerAI",
"version": "0.1.0",
"message": "Scientific Integrity Engine is running"
}
return app |