AI backed processing

This commit is contained in:
2026-01-22 21:53:04 +05:30
parent 9d7109b60f
commit f50dd4692d
12 changed files with 368 additions and 33 deletions

View File

@@ -15,4 +15,12 @@ export class OcrService {
formData.append('file', file);
return this.http.post(`${this.apiUrl}/extract`, formData);
}
extractWithAI(text: string, filePath: string | null, modelType: string): Observable<any> {
return this.http.post(`http://localhost:8000/api/extract/ai`, { text, file_path: filePath, model_type: modelType });
}
saveDocument(data: any): Observable<any> {
return this.http.post(`http://localhost:8000/api/documents/save`, data);
}
}