Skip to content

Commit 18a40e3

Browse files
Merge pull request #216625 from laujan/patch-169
Update tutorial-azure-function.md
2 parents 6beca89 + f9e80de commit 18a40e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/applied-ai-services/form-recognizer/tutorial-azure-function.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: applied-ai-services
99
ms.subservice: forms-recognizer
1010
ms.topic: tutorial
11-
ms.date: 08/23/2022
11+
ms.date: 10/31/2022
1212
ms.author: lajanuar
1313
ms.custom: VS Code-azure-extension-update-completed
1414
---
@@ -149,6 +149,7 @@ Next, you'll add your own code to the Python script to call the Form Recognizer
149149
import time
150150
from requests import get, post
151151
import os
152+
import requests
152153
from collections import OrderedDict
153154
import numpy as np
154155
import pandas as pd
@@ -192,7 +193,7 @@ Next, you'll add your own code to the Python script to call the Form Recognizer
192193
193194
if resp.status_code != 202:
194195
print("POST analyze failed:\n%s" % resp.text)
195-
quit()
196+
quit()
196197
print("POST analyze succeeded:\n%s" % resp.headers)
197198
get_url = resp.headers["operation-location"]
198199
@@ -212,7 +213,7 @@ Next, you'll add your own code to the Python script to call the Form Recognizer
212213
results = resp_json
213214
else:
214215
print("GET Layout results failed:\n%s")
215-
quit()
216+
quit()
216217
217218
results = resp_json
218219
@@ -297,4 +298,4 @@ In this tutorial, you learned how to use an Azure Function written in Python to
297298
> [Microsoft Power BI](https://powerbi.microsoft.com/integrations/azure-table-storage/)
298299
299300
* [What is Form Recognizer?](overview.md)
300-
* Learn more about the [layout model](concept-layout.md)
301+
* Learn more about the [layout model](concept-layout.md)

0 commit comments

Comments
 (0)