AI backed processing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user