Spaces:
Runtime error
Runtime error
sample added
Browse files
backend/app/api/endpoints.py
CHANGED
|
@@ -116,6 +116,12 @@ Upload a JSON file containing the priority rules for request type identification
|
|
| 116 |
"balance",
|
| 117 |
"interest_rate"
|
| 118 |
.......
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
]
|
| 120 |
}
|
| 121 |
}"
|
|
@@ -143,3 +149,4 @@ async def upload_rules(file: UploadFile = File(...)):
|
|
| 143 |
raise HTTPException(status_code=500, detail=f"Error saving file: {e}")
|
| 144 |
|
| 145 |
return {"message": "Rules JSON uploaded successfully."}
|
|
|
|
|
|
| 116 |
"balance",
|
| 117 |
"interest_rate"
|
| 118 |
.......
|
| 119 |
+
],
|
| 120 |
+
"classification_key_considerations": [
|
| 121 |
+
"Any key consideration can add here",
|
| 122 |
+
"key 2.",
|
| 123 |
+
"key 3",
|
| 124 |
+
"....."
|
| 125 |
]
|
| 126 |
}
|
| 127 |
}"
|
|
|
|
| 149 |
raise HTTPException(status_code=500, detail=f"Error saving file: {e}")
|
| 150 |
|
| 151 |
return {"message": "Rules JSON uploaded successfully."}
|
| 152 |
+
|