Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -53,6 +53,27 @@ app.include_router(rlhf_router)
53
  router = APIRouter()
54
 
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  @router.post("/notes-llm")
57
  async def notes_llm_route(
58
  file: UploadFile = File(...),
 
53
  router = APIRouter()
54
 
55
 
56
+ @router.get("/")
57
+ async def root():
58
+ """
59
+ Root endpoint for the Financial Notes Generator API.
60
+ Returns basic API information.
61
+ """
62
+ return {
63
+ "message": "Welcome to Financial Notes Generator API",
64
+ "version": "1.0.0",
65
+ "description": "API for generating financial notes, balance sheets, cash flow statements, and P&L reports",
66
+ "endpoints": {
67
+ "notes": "POST /notes - Generate financial notes from trial balance",
68
+ "notes-llm": "POST /notes-llm - Generate LLM-based notes with interactive feedback",
69
+ "bs": "POST /bs - Generate balance sheet",
70
+ "pnl": "POST /pnl - Generate P&L statement",
71
+ "cf": "POST /cf - Generate cash flow statement",
72
+ "docs": "/docs - API documentation"
73
+ }
74
+ }
75
+
76
+
77
  @router.post("/notes-llm")
78
  async def notes_llm_route(
79
  file: UploadFile = File(...),