Skip to content

Commit e410336

Browse files
authored
Merge branch 'main' into face-misc-fix
2 parents f3cff26 + 658f2f8 commit e410336

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ You can run this repo virtually by using GitHub Codespaces, which will open a we
6161

6262
Navigate to the `notebooks` directory and select the sample notebook you are interested in. Since Codespaces is pre-configured with the necessary environment, you can directly execute each step in the notebook.
6363

64+
## More Samples using Azure Content Understanding
65+
[Azure Search with Content Understanding](https://github.com/Azure-Samples/azure-ai-search-with-content-understanding-python)
66+
67+
[Azure Content Understanding with OpenAI](https://github.com/Azure-Samples/azure-ai-content-understanding-with-azure-openai-python)
68+
6469
## Notes
6570

6671
* **Trademarks** - This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos is subject to those third-party’s policies.

notebooks/analyzer_training.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
" endpoint=os.getenv(\"AZURE_AI_ENDPOINT\"),\n",
9494
" api_version=os.getenv(\"AZURE_AI_API_VERSION\", \"2024-12-01-preview\"),\n",
9595
" token_provider=token_provider,\n",
96-
" x_ms_useragent=\"azure-ai-content-understanding-python/analyzer_training\",\n",
96+
" x_ms_useragent=\"azure-ai-content-understanding-python/analyzer_training\", # This header is used for sample usage telemetry, please comment out this line if you want to opt out.\n",
9797
")"
9898
]
9999
},

notebooks/content_extraction.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
" endpoint=AZURE_AI_ENDPOINT,\n",
7575
" api_version=AZURE_AI_API_VERSION,\n",
7676
" token_provider=token_provider,\n",
77-
" x_ms_useragent=\"azure-ai-content-understanding-python/content_extraction\",\n",
77+
" x_ms_useragent=\"azure-ai-content-understanding-python/content_extraction\", # This header is used for sample usage telemetry, please comment out this line if you want to opt out.\n",
7878
")"
7979
]
8080
},
@@ -135,8 +135,8 @@
135135
"outputs": [],
136136
"source": [
137137
"ANALYZER_ID = \"content-audio-sample-\" + str(uuid.uuid4())\n",
138-
"ANALYZER_TEMPLATE_FILE = '../analyzer_templates/call_recording_analytics.json'\n",
139-
"ANALYZER_SAMPLE_FILE = '../data/callCenterRecording.mp3'\n",
138+
"ANALYZER_TEMPLATE_FILE = '../analyzer_templates/audio_transcription.json'\n",
139+
"ANALYZER_SAMPLE_FILE = '../data/audio.wav'\n",
140140
"\n",
141141
"# Create analyzer\n",
142142
"response = client.begin_create_analyzer(ANALYZER_ID, analyzer_template_path=ANALYZER_TEMPLATE_FILE)\n",

notebooks/field_extraction.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@
5555
"outputs": [],
5656
"source": [
5757
"extraction_templates = {\n",
58-
" \"invoice\": ('../analyzer_templates/invoice.json', '../data/invoice.pdf' ),\n",
59-
" \"chart\": ('../analyzer_templates/image_chart.json', '../data/pieChart.jpg' ),\n",
60-
" \"call_transcript\": ('../analyzer_templates/call_transcript.json', '../data/callCenterRecording.mp3'),\n",
61-
" \"marketing_video\": ('../analyzer_templates/marketing_video.json', '../data/video.mp4' )\n",
58+
" \"invoice\": ('../analyzer_templates/invoice.json', '../data/invoice.pdf' ),\n",
59+
" \"chart\": ('../analyzer_templates/image_chart.json', '../data/pieChart.jpg' ),\n",
60+
" \"call_recording\": ('../analyzer_templates/call_recording_analytics.json', '../data/callCenterRecording.mp3'),\n",
61+
" \"conversation_audio\": ('../analyzer_templates/conversational_audio_analytics.json', '../data/callCenterRecording.mp3'),\n",
62+
" \"marketing_video\": ('../analyzer_templates/marketing_video.json', '../data/video.mp4' )\n",
6263
"}"
6364
]
6465
},
@@ -124,7 +125,7 @@
124125
" endpoint=AZURE_AI_ENDPOINT,\n",
125126
" api_version=AZURE_AI_API_VERSION,\n",
126127
" token_provider=token_provider,\n",
127-
" x_ms_useragent=\"azure-ai-content-understanding-python/field_extraction\",\n",
128+
" x_ms_useragent=\"azure-ai-content-understanding-python/field_extraction\", # This header is used for sample usage telemetry, please comment out this line if you want to opt out.\n",
128129
")"
129130
]
130131
},
@@ -207,7 +208,7 @@
207208
"name": "python",
208209
"nbconvert_exporter": "python",
209210
"pygments_lexer": "ipython3",
210-
"version": "3.11.11"
211+
"version": "3.11.10"
211212
}
212213
},
213214
"nbformat": 4,

notebooks/management.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
" endpoint=AZURE_AI_ENDPOINT,\n",
7474
" api_version=AZURE_AI_API_VERSION,\n",
7575
" token_provider=token_provider,\n",
76-
" x_ms_useragent=\"azure-ai-content-understanding-python/field_extraction\",\n",
76+
" x_ms_useragent=\"azure-ai-content-understanding-python/analyzer_management\", # This header is used for sample usage telemetry, please comment out this line if you want to opt out.\n",
7777
")"
7878
]
7979
},

0 commit comments

Comments
 (0)