text: from fastapi import FastAPI
  from fastapi.middleware.cors import CORSMiddleware
  import uvicorn
  
  from app.api import predict, viz
  
  app = FastAPI(
      title='Where to Post on Reddit API',
      description='This api expects 2 inputs title and text, and will return the subreddit the model think the post belongs in',
      version='0.1',
      docs_url='/',
  )
  
  app.include_router(predict.router)
  app.include_router(viz.router)
  
  app.add_middleware(
      CORSMiddleware,
      allow_origins=['*'],
      allow_credentials=True,
      allow_methods=['*'],
      allow_headers=['*'],
  )
  
  if __name__ == '__main__':
      uvicorn.run(app)
  