static async Task AnalyzeWithCustomModelWithLabels(CustomFormClient client) { var modelId = "91c8da74-3bde-44e5-9fd4-3d8ae150c0bf"; var filePath = @"C:\Users\ctsto\Downloads\sample_data\Test\Invoice_6.pdf"; using var stream = File.OpenRead(filePath); var poller = await client.StartExtractFormAsync(modelId, stream, FormContentType.Pdf, true); await Analyze(poller); }
static async Task AnalyzeWithCustomModel(CustomFormClient client) { var modelId = "a7f013f1-13f6-4594-b5a1-1e8b9e093520"; var filePath = @"C:\Users\ctsto\Downloads\sample_data\Test\Invoice_6.pdf"; using var stream = File.OpenRead(filePath); var poller = await client.StartExtractFormAsync(modelId, stream, FormContentType.Pdf, true); await Analyze(poller); }