AmeenAktharT commited on
Commit
4a81d96
·
verified ·
1 Parent(s): ca0c485

Update src/main.py

Browse files
Files changed (1) hide show
  1. src/main.py +0 -8
src/main.py CHANGED
@@ -48,14 +48,6 @@ class AnalysisResponse(BaseModel):
48
  sentiment: str
49
 
50
  # 2. ADD ROOT ROUTE HERE
51
- # This makes the main link (https://...hf.space/) show a message instead of a 404 error
52
- @app.get("/")
53
- async def root():
54
- return {
55
- "message": "IDP Backend is Online",
56
- "api_endpoint": "/api/document-analyze",
57
- "documentation": "/docs"
58
- }
59
 
60
  # --- API Endpoint ---
61
  @app.post("/api/document-analyze", response_model=AnalysisResponse)
 
48
  sentiment: str
49
 
50
  # 2. ADD ROOT ROUTE HERE
 
 
 
 
 
 
 
 
51
 
52
  # --- API Endpoint ---
53
  @app.post("/api/document-analyze", response_model=AnalysisResponse)