newapi / app.py
habulaj's picture
Update app.py
a8b6fb3 verified
raw
history blame
427 Bytes
from fastapi import FastAPI, Request
from routers import profanity, translate, textclas, summarizer # Importa as rotas
# Instancia a aplicação FastAPI
app = FastAPI()
@app.get("/")
def greet_json():
return {"Hello": "World!"}
# Inclui as rotas
app.include_router(profanity.router)
app.include_router(translate.router) # Inclui a rota adicional
app.include_router(textclas.router)
app.include_router(summarizer.router)