Spaces:
Sleeping
Sleeping
Fix AIAutomation router conflict and remove manual invoice route
Browse files- AIAutomation/app/main.py +1 -1
- server.py +1 -4
AIAutomation/app/main.py
CHANGED
|
@@ -211,6 +211,6 @@ async def extract(file: UploadFile = File(...), api_key: Optional[str] = Form(No
|
|
| 211 |
raise HTTPException(status_code=502, detail=f"Extractor error: {exc}")
|
| 212 |
|
| 213 |
|
| 214 |
-
|
| 215 |
|
| 216 |
|
|
|
|
| 211 |
raise HTTPException(status_code=502, detail=f"Extractor error: {exc}")
|
| 212 |
|
| 213 |
|
| 214 |
+
# Router is exported for inclusion in main server
|
| 215 |
|
| 216 |
|
server.py
CHANGED
|
@@ -158,10 +158,7 @@ def triage_index() -> FileResponse:
|
|
| 158 |
base = ROOT_DIR / "AIHealthcare" / "app" / "static" / "index.html"
|
| 159 |
return FileResponse(base.as_posix())
|
| 160 |
|
| 161 |
-
|
| 162 |
-
def invoice_index() -> FileResponse:
|
| 163 |
-
base = ROOT_DIR / "AIAutomation" / "app" / "static" / "index.html"
|
| 164 |
-
return FileResponse(base.as_posix())
|
| 165 |
|
| 166 |
# These routes are now handled by their respective routers
|
| 167 |
|
|
|
|
| 158 |
base = ROOT_DIR / "AIHealthcare" / "app" / "static" / "index.html"
|
| 159 |
return FileResponse(base.as_posix())
|
| 160 |
|
| 161 |
+
# Invoice route is now handled by the AIAutomation router
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
# These routes are now handled by their respective routers
|
| 164 |
|