Buckets:

HuggingFaceDocBuilder's picture
download
raw
52.7 kB
import{s as kl,o as El,n as A}from"../chunks/scheduler.35aab934.js";import{S as Zl,i as Rl,e as r,s as a,c as d,h as zl,a as p,d as n,b as s,f as Al,g as M,j as u,k as Cl,l as _l,m as l,n as c,t as m,o as h,p as y}from"../chunks/index.b7be2227.js";import{T as I}from"../chunks/Tip.53e7a084.js";import{C as Vl,H as b,E as Wl}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.78593611.js";import{C as U}from"../chunks/CodeBlock.9272b0dc.js";function Bl(T){let i,f="Note that you can select any Automatic Speech Recognition (ASR) model available on the Hugging Face Hub with the tag <code>NeMo</code> and the “Deploy on Microsoft Foundry” option enabled, or directly select any of the ASR models available on either Azure Machine Learning or Microsoft Foundry model catalog under the “HuggingFace” collection. Note that the NVIDIA Parakeet models are powered by NVIDIA NeMo under a Hugging Face API layer.";return{c(){i=r("p"),i.innerHTML=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-17sy6m6"&&(i.innerHTML=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function Ll(T){let i,f="Note that endpoint names must be globally unique per region i.e., even if you don’t have any endpoint named that way running under your subscription, if the name is reserved by another Azure customer, then you won’t be able to use the same name. Adding a timestamp or a custom identifier is recommended to prevent running into HTTP 400 validation issues when trying to deploy an endpoint with an already locked / reserved name. Also the endpoint name must be between 3 and 32 characters long.";return{c(){i=r("p"),i.textContent=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-1o1z8dc"&&(i.textContent=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function Fl(T){let i,f="On standard Azure Machine Learning deployments you’d need to create the <code>MLClient</code> using the Azure Machine Learning Workspace as the <code>workspace_name</code> whereas for Microsoft Foundry, you need to provide Microsoft Foundry Hub name as the <code>workspace_name</code> instead, and that will deploy the endpoint under Microsoft Foundry too.";return{c(){i=r("p"),i.innerHTML=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-1cmgz5i"&&(i.innerHTML=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function Nl(T){let i,f='To check if a model from the Hugging Face Hub is available in Azure, you should read about it in <a href="https://huggingface.co/docs/microsoft-azure/azure-ai/models" rel="nofollow">Supported Models</a>. If not, you can always <a href="https://huggingface.co/docs/microsoft-azure/guides/request-model-addition" rel="nofollow">Request a model addition in the Hugging Face collection on Azure</a>).';return{c(){i=r("p"),i.innerHTML=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-15zbbe3"&&(i.innerHTML=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function Gl(T){let i,f='Every model in the Hugging Face collection is powered by an efficient inference backend, and each of those can run on a wide variety of instance types (as listed in <a href="https://huggingface.co/docs/microsoft-azure/azure-ai/supported-hardware" rel="nofollow">Supported Hardware</a>). Since for models and inference engines require a GPU-accelerated instance, you might need to request a quota increase as per <a href="https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-quotas?view=azureml-api-2" rel="nofollow">Manage and increase quotas and limits for resources with Azure Machine Learning</a>.';return{c(){i=r("p"),i.innerHTML=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-blz99s"&&(i.innerHTML=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function Sl(T){let i,f="On Microsoft Foundry the endpoint will only be listed within the “My assets -> Models + endpoints” tab once the deployment is created, not before as in Azure Machine Learning where the endpoint is shown even if it doesn’t contain any active or in-progress deployments.";return{c(){i=r("p"),i.textContent=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-1thum8j"&&(i.textContent=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function xl(T){let i,f="Alternatively, you can also build the API URL manually as it follows, since the URIs are globally unique per region, meaning that there will only be one endpoint named the same way within the same region:",o,g,$,J,j="Or just retrieve it from either Microsoft Foundry or the Azure Machine Learning Studio.",v;return g=new U({props:{code:"YXBpX3VybCUyMCUzRCUyMGYlMjJodHRwcyUzQSUyRiUyRiU3Qm9zLmdldGVudignRU5EUE9JTlRfTkFNRScpJTdELiU3Qm9zLmdldGVudignTE9DQVRJT04nKSU3RC5pbmZlcmVuY2UubWwuYXp1cmUuY29tJTJGYXBpJTJGdjElMjI=",highlighted:'api_url = <span class="hljs-string">f&quot;https://<span class="hljs-subst">{os.getenv(<span class="hljs-string">&#x27;ENDPOINT_NAME&#x27;</span>)}</span>.<span class="hljs-subst">{os.getenv(<span class="hljs-string">&#x27;LOCATION&#x27;</span>)}</span>.inference.ml.azure.com/api/v1&quot;</span>',lang:"python",wrap:!1}}),{c(){i=r("p"),i.textContent=f,o=a(),d(g.$$.fragment),$=a(),J=r("p"),J.textContent=j},l(w){i=p(w,"P",{"data-svelte-h":!0}),u(i)!=="svelte-ufs9gh"&&(i.textContent=f),o=s(w),M(g.$$.fragment,w),$=s(w),J=p(w,"P",{"data-svelte-h":!0}),u(J)!=="svelte-110vkm2"&&(J.textContent=j)},m(w,C){l(w,i,C),l(w,o,C),c(g,w,C),l(w,$,C),l(w,J,C),v=!0},p:A,i(w){v||(m(g.$$.fragment,w),v=!0)},o(w){h(g.$$.fragment,w),v=!1},d(w){w&&(n(i),n(o),n($),n(J)),y(g,w)}}}function Ql(T){let i,f='Alternatively, the Gradio demo connected to your Azure Machine Learning Managed Online Endpoint as an Azure Container App as described in <a href="https://learn.microsoft.com/en-us/azure/container-apps/tutorial-deploy-from-code?tabs=python" rel="nofollow">Tutorial: Build and deploy from source code to Azure Container Apps</a>. If you’d like us to show you how to do it for Gradio in particular, feel free to <a href="https://github.com/huggingface/Microsoft-Azure/issues/new" rel="nofollow">open an issue requesting it</a>.';return{c(){i=r("p"),i.innerHTML=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-1wb2tca"&&(i.innerHTML=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function Hl(T){let i,f='📍 Find the complete example on GitHub <a href="https://github.com/huggingface/Microsoft-Azure/tree/main/examples/foundry/deploy-nvidia-parakeet-asr/azure-notebook.ipynb" rel="nofollow">here</a>!';return{c(){i=r("p"),i.innerHTML=f},l(o){i=p(o,"P",{"data-svelte-h":!0}),u(i)!=="svelte-1q0t8q0"&&(i.innerHTML=f)},m(o,g){l(o,i,g)},p:A,d(o){o&&n(i)}}}function ql(T){let i,f,o,g,$,J,j,v,w,C="<small>Written by Alvaro Bartolome</small><br/><small>Last updated 2026-05-21</small>",nt,L,zn="This example showcases how to deploy NVIDIA Parakeet for Automatic Speech Recognition (ASR) from the Hugging Face collection on Microsoft Foundry as an Azure Machine Learning Managed Online Endpoint, powered by Hugging Face’s Inference container on top of NVIDIA NeMo. It also covers how to run inference with cURL, requests, OpenAI Python SDK, and even how to locally run a Gradio application for audio transcription from both recordings and files.",lt,F,_n="TL;DR NVIDIA NeMo is a scalable generative AI framework built for researchers and developers working on Large Language Models, Multimodal, and Speech AI (Automatic Speech Recognition and Text-to-Speech). NVIDIA NeMo Parakeet ASR Models attain strong speech recognition accuracy while being efficient for inference. Microsoft Foundry (formerly Azure AI Foundry) provides a unified platform for enterprise AI operations, model builders, and application development. Azure Machine Learning is a cloud service for accelerating and managing the machine learning (ML) project lifecycle.",at,st,it,N,Vn='This example will specifically deploy <a href="https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2" rel="nofollow"><code>nvidia/parakeet-tdt-0.6b-v2</code></a> from the Hugging Face Hub (or see it on <a href="https://ml.azure.com/models/nvidia-parakeet-tdt-0.6b-v2/version/4/catalog/registry/HuggingFace" rel="nofollow">AzureML</a> or on <a href="https://ai.azure.com/explore/models/nvidia-parakeet-tdt-0.6b-v2/version/4/registry/HuggingFace" rel="nofollow">Microsoft Foundry</a>) as an Azure Machine Learning Managed Online Endpoint on Microsoft Foundry.',ot,G,Wn="<code>nvidia/parakeet-tdt-0.6b-v2</code> is a 600-million-parameter automatic speech recognition (ASR) model designed for high-quality English transcription, featuring support for punctuation, capitalization, and accurate timestamp prediction.",rt,S,Bn="This XL variant of the FastConformer architecture integrates the TDT decoder and is trained with full attention, enabling efficient transcription of audio segments up to 24 minutes in a single pass. The model achieves an RTFx of 3380 on the HF-Open-ASR leaderboard with a batch size of 128. Note: RTFx Performance may vary depending on dataset audio duration and batch size.",pt,x,Ln="<li>Accurate word-level timestamp predictions</li> <li>Automatic punctuation and capitalization</li> <li>Robust performance on spoken numbers, and song lyrics transcription</li>",ut,Q,Fn='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/microsoft-azure/foundry/deploy-nvidia-parakeet-asr/nvidia-parakeet-hub.png" alt="NVIDIA Parakeet on the Hugging Face Hub"/>',dt,H,Nn='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/microsoft-azure/foundry/deploy-nvidia-parakeet-asr/nvidia-parakeet-azure-ai.png" alt="NVIDIA Parakeet on Azure AI Foundry"/>',Mt,q,Gn='For more information, make sure to check <a href="https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2/blob/main/README.md" rel="nofollow">their model card on the Hugging Face Hub</a> and the <a href="https://docs.nvidia.com/nemo-framework/user-guide/latest/nemotoolkit/asr/models.html" rel="nofollow">NVIDIA NeMo Documentation</a>.',ct,k,mt,X,ht,P,Sn='To run the following example, you will need to comply with the following pre-requisites, alternatively, you can also read more about those in the <a href="https://learn.microsoft.com/en-us/azure/machine-learning/quickstart-create-resources?view=azureml-api-2" rel="nofollow">Azure Machine Learning Tutorial: Create resources you need to get started</a>.',yt,Y,xn="<li>An Azure account with an active subscription.</li> <li>The Azure CLI installed and logged in.</li> <li>The Azure Machine Learning extension for the Azure CLI.</li> <li>An Azure Resource Group.</li> <li>A Hub-based project on Microsoft Foundry.</li>",ft,D,Qn='For more information, please go through the steps in the guide <a href="https://huggingface.co/docs/microsoft-azure/guides/configure-azure-ml-microsoft-foundry" rel="nofollow">“Configure Azure Machine Learning and Microsoft Foundry”</a>.',gt,O,wt,K,Hn='In this example, the <a href="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/ml/azure-ai-ml" rel="nofollow">Azure Machine Learning SDK for Python</a> will be used to create the endpoint and the deployment, as well as to invoke the deployed API. Along with it, you will also need to install <code>azure-identity</code> to authenticate with your Azure credentials via Python.',Tt,ee,Ut,te,qn='More information at <a href="https://learn.microsoft.com/en-us/python/api/overview/azure/ai-ml-readme?view=azure-python" rel="nofollow">Azure Machine Learning SDK for Python</a>.',$t,ne,Xn="Then, for convenience setting the following environment variables is recommended as those will be used along the example for the Azure Machine Learning Client, so make sure to update and set those values accordingly as per your Microsoft Azure account and resources.",Jt,le,bt,ae,Pn="Finally, you also need to define both the endpoint and deployment names, as those will be used throughout the example too:",jt,E,vt,se,It,ie,At,oe,Yn="Initially, you need to authenticate into Microsoft Foundry Hub via Azure Machine Learning with the Azure Machine Learning Python SDK, which will be later used to deploy <code>nvidia/parakeet-tdt-0.6b-v2</code> as an Azure Machine Learning Managed Online Endpoint on Microsoft Foundry.",Ct,Z,kt,re,Et,pe,Zt,ue,Dn="Before creating the Managed Online Endpoint, you need to build the model URI, which is formatted as it follows <code>azureml://registries/HuggingFace/models/&lt;MODEL_ID&gt;/labels/latest</code> where the <code>MODEL_ID</code> won’t be the Hugging Face Hub ID but rather its name on Azure, as follows:",Rt,de,zt,R,_t,Me,On='Then you need to create the <a href="https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.entities.managedonlineendpoint?view=azure-python" rel="nofollow">ManagedOnlineEndpoint via the Azure Machine Learning Python SDK</a> as follows.',Vt,z,Wt,ce,Bt,me,Lt,he,Kn='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/microsoft-azure/foundry/deploy-nvidia-parakeet-asr/azure-ai-endpoint.png" alt="Azure AI Endpoint from Azure AI Foundry"/>',Ft,_,Nt,ye,Gt,fe,el='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/microsoft-azure/foundry/deploy-nvidia-parakeet-asr/azure-ai-deployment.png" alt="Azure AI Deployment from Azure AI Foundry"/>',St,ge,tl='The deployment might take ~10-15 minutes, but it could as well take longer depending on the selected SKU availability in the region. Once deployed, you will be able to inspect the endpoint details, the real-time logs, how to consume the endpoint, and <a href="https://learn.microsoft.com/en-us/azure/machine-learning/concept-model-monitoring?view=azureml-api-2" rel="nofollow">monitoring (on preview)</a>.',xt,we,nl='Find more information about it at <a href="https://learn.microsoft.com/en-us/azure/machine-learning/concept-endpoints-online?view=azureml-api-2#managed-online-endpoints" rel="nofollow">Azure Machine Learning Managed Online Endpoints</a>.',Qt,Te,Ht,Ue,ll="Finally, now that the Foundry Endpoint is deployed, you can send requests to it. In this case, since the task of the model is <code>automatic-speech-recognition</code> and since it expects a multi-part request to be sent along the audio file, the <code>invoke</code> method cannot be used since it only supports JSON payloads.",qt,$e,al="This being said, you can still send requests to it programmatically via <code>requests</code>, via the OpenAI SDK for Python or with cURL, to the <code>/api/v1/audio/transcriptions</code> route which is the OpenAI-compatible route for the Transcriptions API.",Xt,Je,sl="To send the requests then we need both the <code>primary_key</code> and the <code>scoring_uri</code>, which can be retrieved via the Azure Machine Learning Python SDK as it follows:",Pt,be,Yt,je,il="Additionally, since you will need a sample audio file to run the inference over, you will need to download an audio file as e.g. the following, which is the audio file showcased within the <code>nvidia/parakeet-tdt-0.6b-v2</code> model card:",Dt,ve,Ot,Ie,Kt,Ae,ol="As the deployed Foundry Endpoint for ASR expects a multi-part request, you need to send separately the files, in this case being the audio files, and the data, being the request parameters such as e.g. the model name or the temperature, among others. To do so, you first need to read the audio file into an <code>io.BytesIO</code> object, and then prepare the requests with the necessary headers for both the authentication and the <code>azureml-model-deployment</code> set to point to the actual Foundry Deployment, and send the HTTP POST with both the file and the data as follows:",en,Ce,tn,ke,nn,Ee,rl="As the exposed scoring URI is an OpenAI-compatible route i.e., <code>/api/v1/audio/transcriptions</code>, you can leverage the OpenAI Python SDK to send requests to the deployed Foundry Endpoint.",ln,Ze,an,Re,pl="To use the OpenAI Python SDK with Azure Machine Learning Managed Online Endpoints, you need to update the <code>api_url</code> value defined above, since the default <code>scoring_uri</code> comes with the full route, whereas the OpenAI SDK expects the route up until the <code>v1</code> included, meaning that the <code>/audio/transcriptions</code> should be removed before instantiating the client.",sn,ze,on,V,rn,_e,ul="Then you can use the OpenAI Python SDK normally, making sure to include the extra header <code>azureml-model-deployment</code> header that contains the Microsoft Foundry or Azure Machine Learning Deployment.",pn,Ve,dl="Via the OpenAI Python SDK it can either be set within each call to <code>chat.completions.create</code> via the <code>extra_headers</code> parameter as commented below, or via the <code>default_headers</code> parameter when instantiating the <code>OpenAI</code> client (which is the recommended approach since the header needs to be present on each request, so setting it just once is preferred).",un,We,dn,Be,Mn,Le,Ml="Alternatively, you can also just use <code>cURL</code> to send requests to the deployed endpoint, with the <code>api_url</code> and <code>api_key</code> values programmatically retrieved in the OpenAI snippet and now set as environment variables so that <code>cURL</code> can use those, as it follows:",cn,Fe,mn,Ne,hn,Ge,cl="Alternatively, you can also just go to the Foundry Endpoint on either Microsoft Foundry under “My assets -> Models + endpoints” or in the Azure Machine Learning Studio via “Endpoints”, and retrieve both the scoring URI and the API Key values, as well as the Microsoft Foundry or Azure Machine Learning name for the given model.",yn,Se,fn,xe,ml='<a href="https://www.gradio.app/" rel="nofollow">Gradio</a> is the fastest way to demo your machine learning model with a friendly web interface so that anyone can use it. You can also leverage the OpenAI Python SDK to build a simple automatic-speech-recognition i.e., speech to text demo that you can use within the Jupyter Notebook cell where you are running it.',gn,W,wn,Qe,Tn,He,Un,qe,hl='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/microsoft-azure/foundry/deploy-nvidia-parakeet-asr/azure-ml-gradio.png" alt="Gradio Chat Interface with Azure Machine Learning Endpoint"/>',$n,Xe,Jn,Pe,yl="Once you are done using the Foundry Endpoint, you can delete the resources (i.e., you will stop paying for the instance on which the model is running and all the attached costs) as follows:",bn,Ye,jn,De,vn,Oe,fl="Throughout this example you learnt how to create and configure your Azure account for Azure Machine Learning and Microsoft Foundry, how to then create a Managed Online Endpoint running an open model for Automatic Speech Recognition (ASR) from the Hugging Face collection on Microsoft Foundry and Azure Machine Learning model catalog, how to send inference requests to it afterwards with different alternatives, how to build a simple Gradio chat interface around it, and finally, how to stop and release the resources.",In,Ke,gl='If you have any doubt, issue or question about this example, feel free to <a href="https://github.com/huggingface/Microsoft-Azure/issues/new" rel="nofollow">open an issue</a> and we’ll do our best to help!',An,Cn,kn,B,En,et,Zn,tt,Rn;return $=new Vl({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),j=new b({props:{title:"Deploy NVIDIA Parakeet for Automatic Speech Recognition (ASR) on Microsoft Foundry",local:"deploy-nvidia-parakeet-for-automatic-speech-recognition-asr-on-microsoft-foundry",headingTag:"h1"}}),k=new I({props:{$$slots:{default:[Bl]},$$scope:{ctx:T}}}),X=new b({props:{title:"Pre-requisites",local:"pre-requisites",headingTag:"h2"}}),O=new b({props:{title:"Setup and installation",local:"setup-and-installation",headingTag:"h2"}}),ee=new U({props:{code:"JTI1cGlwJTIwaW5zdGFsbCUyMGF6dXJlLWFpLW1sJTIwYXp1cmUtaWRlbnRpdHklMjAtLXVwZ3JhZGUlMjAtLXF1aWV0",highlighted:"%pip install azure-ai-ml azure-identity --upgrade --quiet",lang:"python",wrap:!1}}),le=new U({props:{code:"JTI1ZW52JTIwTE9DQVRJT04lMjBlYXN0dXMlMEElMjVlbnYlMjBTVUJTQ1JJUFRJT05fSUQlMjAlM0NZT1VSX1NVQlNDUklQVElPTl9JRCUzRSUwQSUyNWVudiUyMFJFU09VUkNFX0dST1VQJTIwJTNDWU9VUl9SRVNPVVJDRV9HUk9VUCUzRSUwQSUyNWVudiUyMFdPUktTUEFDRV9OQU1FJTIwJTNDWU9VUl9XT1JLU1BBQ0VfTkFNRSUzRQ==",highlighted:`%env LOCATION eastus
%env SUBSCRIPTION_ID &lt;YOUR_SUBSCRIPTION_ID&gt;
%env RESOURCE_GROUP &lt;YOUR_RESOURCE_GROUP&gt;
%env WORKSPACE_NAME &lt;YOUR_WORKSPACE_NAME&gt;`,lang:"python",wrap:!1}}),E=new I({props:{$$slots:{default:[Ll]},$$scope:{ctx:T}}}),se=new U({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwdXVpZCUyMGltcG9ydCUyMHV1aWQ0JTBBJTBBb3MuZW52aXJvbiU1QiUyMkVORFBPSU5UX05BTUUlMjIlNUQlMjAlM0QlMjBmJTIybnZpZGlhLXBhcmFrZWV0LSU3QnN0cih1dWlkNCgpKSU1QiUzQTglNUQlN0QlMjIlMEFvcy5lbnZpcm9uJTVCJTIyREVQTE9ZTUVOVF9OQU1FJTIyJTVEJTIwJTNEJTIwZiUyMm52aWRpYS1wYXJha2VldC0lN0JzdHIodXVpZDQoKSklNUIlM0E4JTVEJTdEJTIy",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> uuid <span class="hljs-keyword">import</span> uuid4
os.environ[<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>] = <span class="hljs-string">f&quot;nvidia-parakeet-<span class="hljs-subst">{<span class="hljs-built_in">str</span>(uuid4())[:<span class="hljs-number">8</span>]}</span>&quot;</span>
os.environ[<span class="hljs-string">&quot;DEPLOYMENT_NAME&quot;</span>] = <span class="hljs-string">f&quot;nvidia-parakeet-<span class="hljs-subst">{<span class="hljs-built_in">str</span>(uuid4())[:<span class="hljs-number">8</span>]}</span>&quot;</span>`,lang:"python",wrap:!1}}),ie=new b({props:{title:"Authenticate to Azure Machine Learning",local:"authenticate-to-azure-machine-learning",headingTag:"h2"}}),Z=new I({props:{$$slots:{default:[Fl]},$$scope:{ctx:T}}}),re=new U({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwYXp1cmUuYWkubWwlMjBpbXBvcnQlMjBNTENsaWVudCUwQWZyb20lMjBhenVyZS5pZGVudGl0eSUyMGltcG9ydCUyMERlZmF1bHRBenVyZUNyZWRlbnRpYWwlMEElMEFjbGllbnQlMjAlM0QlMjBNTENsaWVudCglMEElMjAlMjAlMjAlMjBjcmVkZW50aWFsJTNERGVmYXVsdEF6dXJlQ3JlZGVudGlhbCgpJTJDJTBBJTIwJTIwJTIwJTIwc3Vic2NyaXB0aW9uX2lkJTNEb3MuZ2V0ZW52KCUyMlNVQlNDUklQVElPTl9JRCUyMiklMkMlMEElMjAlMjAlMjAlMjByZXNvdXJjZV9ncm91cF9uYW1lJTNEb3MuZ2V0ZW52KCUyMlJFU09VUkNFX0dST1VQJTIyKSUyQyUwQSUyMCUyMCUyMCUyMHdvcmtzcGFjZV9uYW1lJTNEb3MuZ2V0ZW52KCUyMldPUktTUEFDRV9OQU1FJTIyKSUyQyUwQSk=",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> azure.ai.ml <span class="hljs-keyword">import</span> MLClient
<span class="hljs-keyword">from</span> azure.identity <span class="hljs-keyword">import</span> DefaultAzureCredential
client = MLClient(
credential=DefaultAzureCredential(),
subscription_id=os.getenv(<span class="hljs-string">&quot;SUBSCRIPTION_ID&quot;</span>),
resource_group_name=os.getenv(<span class="hljs-string">&quot;RESOURCE_GROUP&quot;</span>),
workspace_name=os.getenv(<span class="hljs-string">&quot;WORKSPACE_NAME&quot;</span>),
)`,lang:"python",wrap:!1}}),pe=new b({props:{title:"Create and Deploy Foundry Endpoint",local:"create-and-deploy-foundry-endpoint",headingTag:"h2"}}),de=new U({props:{code:"bW9kZWxfaWQlMjAlM0QlMjAlMjJudmlkaWElMkZwYXJha2VldC10ZHQtMC42Yi12MiUyMiUwQSUwQW1vZGVsX3VyaSUyMCUzRCUyMGYlMjJhenVyZW1sJTNBJTJGJTJGcmVnaXN0cmllcyUyRkh1Z2dpbmdGYWNlJTJGbW9kZWxzJTJGJTdCbW9kZWxfaWQucmVwbGFjZSgnJTJGJyUyQyUyMCctJykucmVwbGFjZSgnXyclMkMlMjAnLScpLmxvd2VyKCklN0QlMkZsYWJlbHMlMkZsYXRlc3QlMjIlMEFtb2RlbF91cmk=",highlighted:`model_id = <span class="hljs-string">&quot;nvidia/parakeet-tdt-0.6b-v2&quot;</span>
model_uri = <span class="hljs-string">f&quot;azureml://registries/HuggingFace/models/<span class="hljs-subst">{model_id.replace(<span class="hljs-string">&#x27;/&#x27;</span>, <span class="hljs-string">&#x27;-&#x27;</span>).replace(<span class="hljs-string">&#x27;_&#x27;</span>, <span class="hljs-string">&#x27;-&#x27;</span>).lower()}</span>/labels/latest&quot;</span>
model_uri`,lang:"python",wrap:!1}}),R=new I({props:{$$slots:{default:[Nl]},$$scope:{ctx:T}}}),z=new I({props:{$$slots:{default:[Gl]},$$scope:{ctx:T}}}),ce=new U({props:{code:"ZnJvbSUyMGF6dXJlLmFpLm1sLmVudGl0aWVzJTIwaW1wb3J0JTIwTWFuYWdlZE9ubGluZUVuZHBvaW50JTJDJTIwTWFuYWdlZE9ubGluZURlcGxveW1lbnQlMEElMEFlbmRwb2ludCUyMCUzRCUyME1hbmFnZWRPbmxpbmVFbmRwb2ludChuYW1lJTNEb3MuZ2V0ZW52KCUyMkVORFBPSU5UX05BTUUlMjIpKSUwQSUwQWRlcGxveW1lbnQlMjAlM0QlMjBNYW5hZ2VkT25saW5lRGVwbG95bWVudCglMEElMjAlMjAlMjAlMjBuYW1lJTNEb3MuZ2V0ZW52KCUyMkRFUExPWU1FTlRfTkFNRSUyMiklMkMlMEElMjAlMjAlMjAlMjBlbmRwb2ludF9uYW1lJTNEb3MuZ2V0ZW52KCUyMkVORFBPSU5UX05BTUUlMjIpJTJDJTBBJTIwJTIwJTIwJTIwbW9kZWwlM0Rtb2RlbF91cmklMkMlMEElMjAlMjAlMjAlMjBpbnN0YW5jZV90eXBlJTNEJTIyU3RhbmRhcmRfTkM0MGFkc19IMTAwX3Y1JTIyJTJDJTBBJTIwJTIwJTIwJTIwaW5zdGFuY2VfY291bnQlM0QxJTJDJTBBKQ==",highlighted:`<span class="hljs-keyword">from</span> azure.ai.ml.entities <span class="hljs-keyword">import</span> ManagedOnlineEndpoint, ManagedOnlineDeployment
endpoint = ManagedOnlineEndpoint(name=os.getenv(<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>))
deployment = ManagedOnlineDeployment(
name=os.getenv(<span class="hljs-string">&quot;DEPLOYMENT_NAME&quot;</span>),
endpoint_name=os.getenv(<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>),
model=model_uri,
instance_type=<span class="hljs-string">&quot;Standard_NC40ads_H100_v5&quot;</span>,
instance_count=<span class="hljs-number">1</span>,
)`,lang:"python",wrap:!1}}),me=new U({props:{code:"Y2xpZW50LmJlZ2luX2NyZWF0ZV9vcl91cGRhdGUoZW5kcG9pbnQpLndhaXQoKQ==",highlighted:"client.begin_create_or_update(endpoint).wait()",lang:"python",wrap:!1}}),_=new I({props:{$$slots:{default:[Sl]},$$scope:{ctx:T}}}),ye=new U({props:{code:"Y2xpZW50Lm9ubGluZV9kZXBsb3ltZW50cy5iZWdpbl9jcmVhdGVfb3JfdXBkYXRlKGRlcGxveW1lbnQpLndhaXQoKQ==",highlighted:"client.online_deployments.begin_create_or_update(deployment).wait()",lang:"python",wrap:!1}}),Te=new b({props:{title:"Send requests to the Foundry Endpoint",local:"send-requests-to-the-foundry-endpoint",headingTag:"h2"}}),be=new U({props:{code:"YXBpX2tleSUyMCUzRCUyMGNsaWVudC5vbmxpbmVfZW5kcG9pbnRzLmdldF9rZXlzKG9zLmdldGVudiglMjJFTkRQT0lOVF9OQU1FJTIyKSkucHJpbWFyeV9rZXklMEFhcGlfdXJsJTIwJTNEJTIwY2xpZW50Lm9ubGluZV9lbmRwb2ludHMuZ2V0KG9zLmdldGVudiglMjJFTkRQT0lOVF9OQU1FJTIyKSkuc2NvcmluZ191cmk=",highlighted:`api_key = client.online_endpoints.get_keys(os.getenv(<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>)).primary_key
api_url = client.online_endpoints.get(os.getenv(<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>)).scoring_uri`,lang:"python",wrap:!1}}),ve=new U({props:{code:"IXdnZXQlMjBodHRwcyUzQSUyRiUyRmRsZGF0YS1wdWJsaWMuczMudXMtZWFzdC0yLmFtYXpvbmF3cy5jb20lMkYyMDg2LTE0OTIyMC0wMDMzLndhdg==",highlighted:'!wget https://dldata-public.s3.us-east-<span class="hljs-number">2.</span>amazonaws.com/<span class="hljs-number">2086</span>-<span class="hljs-number">149220</span>-<span class="hljs-number">0033.</span>wav',lang:"python",wrap:!1}}),Ie=new b({props:{title:"Python requests",local:"python-requests",headingTag:"h3"}}),Ce=new U({props:{code:"ZnJvbSUyMGlvJTIwaW1wb3J0JTIwQnl0ZXNJTyUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBYXVkaW9fZmlsZSUyMCUzRCUyMEJ5dGVzSU8ob3BlbiglMjIyMDg2LTE0OTIyMC0wMDMzLndhdiUyMiUyQyUyMCUyMnJiJTIyKS5yZWFkKCkpJTBBYXVkaW9fZmlsZS5uYW1lJTIwJTNEJTIwJTIyMjA4Ni0xNDkyMjAtMDAzMy53YXYlMjIlMEElMEFyZXNwb25zZSUyMCUzRCUyMHJlcXVlc3RzLnBvc3QoJTBBJTIwJTIwJTIwJTIwYXBpX3VybCUyQyUwQSUyMCUyMCUyMCUyMGhlYWRlcnMlM0QlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJBdXRob3JpemF0aW9uJTIyJTNBJTIwZiUyMkJlYXJlciUyMCU3QmFwaV9rZXklN0QlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJhenVyZW1sLW1vZGVsLWRlcGxveW1lbnQlMjIlM0ElMjBvcy5nZXRlbnYoJTIyREVQTE9ZTUVOVF9OQU1FJTIyKSUyQyUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMGZpbGVzJTNEJTdCJTIyZmlsZSUyMiUzQSUyMChhdWRpb19maWxlLm5hbWUlMkMlMjBhdWRpb19maWxlJTJDJTIwJTIyYXVkaW8lMkZ3YXYlMjIpJTdEJTJDJTBBJTIwJTIwJTIwJTIwZGF0YSUzRCU3QiUyMm1vZGVsJTIyJTNBJTIwbW9kZWxfaWQlN0QlMkMlMEEpJTBBcHJpbnQocmVzcG9uc2UuanNvbigpKSUwQSUyMyUyMCU3Qid0ZXh0JyUzQSUyMCUyMldlbGwlMkMlMjBJJTIwZG9uJ3QlMjB3aXNoJTIwdG8lMjBzZWUlMjBpdCUyMGFueSUyMG1vcmUlMkMlMjBvYnNlcnZlZCUyMFBoZWJlJTJDJTIwdHVybmluZyUyMGF3YXklMjBoZXIlMjBleWVzLiUyMEl0JTIwaXMlMjBjZXJ0YWlubHklMjB2ZXJ5JTIwbGlrZSUyMHRoZSUyMG9sZCUyMHBvcnRyYWl0LiUyMiU3RA==",highlighted:`<span class="hljs-keyword">from</span> io <span class="hljs-keyword">import</span> BytesIO
<span class="hljs-keyword">import</span> requests
audio_file = BytesIO(<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;2086-149220-0033.wav&quot;</span>, <span class="hljs-string">&quot;rb&quot;</span>).read())
audio_file.name = <span class="hljs-string">&quot;2086-149220-0033.wav&quot;</span>
response = requests.post(
api_url,
headers={
<span class="hljs-string">&quot;Authorization&quot;</span>: <span class="hljs-string">f&quot;Bearer <span class="hljs-subst">{api_key}</span>&quot;</span>,
<span class="hljs-string">&quot;azureml-model-deployment&quot;</span>: os.getenv(<span class="hljs-string">&quot;DEPLOYMENT_NAME&quot;</span>),
},
files={<span class="hljs-string">&quot;file&quot;</span>: (audio_file.name, audio_file, <span class="hljs-string">&quot;audio/wav&quot;</span>)},
data={<span class="hljs-string">&quot;model&quot;</span>: model_id},
)
<span class="hljs-built_in">print</span>(response.json())
<span class="hljs-comment"># {&#x27;text&#x27;: &quot;Well, I don&#x27;t wish to see it any more, observed Phebe, turning away her eyes. It is certainly very like the old portrait.&quot;}</span>`,lang:"python",wrap:!1}}),ke=new b({props:{title:"OpenAI Python SDK",local:"openai-python-sdk",headingTag:"h3"}}),Ze=new U({props:{code:"JTI1cGlwJTIwaW5zdGFsbCUyMG9wZW5haSUyMC0tdXBncmFkZSUyMC0tcXVpZXQ=",highlighted:"%pip install openai --upgrade --quiet",lang:"python",wrap:!1}}),ze=new U({props:{code:"YXBpX3VybCUyMCUzRCUyMGNsaWVudC5vbmxpbmVfZW5kcG9pbnRzLmdldChvcy5nZXRlbnYoJTIyRU5EUE9JTlRfTkFNRSUyMikpLnNjb3JpbmdfdXJpLnJlcGxhY2UoJTIyJTJGYXVkaW8lMkZ0cmFuc2NyaXB0aW9ucyUyMiUyQyUyMCUyMiUyMik=",highlighted:'api_url = client.online_endpoints.get(os.getenv(<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>)).scoring_uri.replace(<span class="hljs-string">&quot;/audio/transcriptions&quot;</span>, <span class="hljs-string">&quot;&quot;</span>)',lang:"python",wrap:!1}}),V=new I({props:{$$slots:{default:[xl]},$$scope:{ctx:T}}}),We=new U({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwb3BlbmFpJTIwaW1wb3J0JTIwT3BlbkFJJTBBJTBBb3BlbmFpX2NsaWVudCUyMCUzRCUyME9wZW5BSSglMEElMjAlMjAlMjAlMjBiYXNlX3VybCUzRGFwaV91cmwlMkMlMEElMjAlMjAlMjAlMjBhcGlfa2V5JTNEYXBpX2tleSUyQyUwQSUyMCUyMCUyMCUyMGRlZmF1bHRfaGVhZGVycyUzRCU3QiUyMmF6dXJlbWwtbW9kZWwtZGVwbG95bWVudCUyMiUzQSUyMG9zLmdldGVudiglMjJERVBMT1lNRU5UX05BTUUlMjIpJTdEJTJDJTBBKSUwQSUwQXRyYW5zY3JpcHRpb24lMjAlM0QlMjBvcGVuYWlfY2xpZW50LmF1ZGlvLnRyYW5zY3JpcHRpb25zLmNyZWF0ZSglMEElMjAlMjAlMjAlMjBtb2RlbCUzRG1vZGVsX2lkJTJDJTBBJTIwJTIwJTIwJTIwZmlsZSUzRG9wZW4oJTIyMjA4Ni0xNDkyMjAtMDAzMy53YXYlMjIlMkMlMjAlMjJyYiUyMiklMkMlMEElMjAlMjAlMjAlMjByZXNwb25zZV9mb3JtYXQlM0QlMjJqc29uJTIyJTJDJTBBKSUwQXByaW50KHRyYW5zY3JpcHRpb24udGV4dCklMEElMjMlMjBXZWxsJTJDJTIwSSUyMGRvbid0JTIwd2lzaCUyMHRvJTIwc2VlJTIwaXQlMjBhbnklMjBtb3JlJTJDJTIwb2JzZXJ2ZWQlMjBQaGViZSUyQyUyMHR1cm5pbmclMjBhd2F5JTIwaGVyJTIwZXllcy4lMjBJdCUyMGlzJTIwY2VydGFpbmx5JTIwdmVyeSUyMGxpa2UlMjB0aGUlMjBvbGQlMjBwb3J0cmFpdC4=",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> openai <span class="hljs-keyword">import</span> OpenAI
openai_client = OpenAI(
base_url=api_url,
api_key=api_key,
default_headers={<span class="hljs-string">&quot;azureml-model-deployment&quot;</span>: os.getenv(<span class="hljs-string">&quot;DEPLOYMENT_NAME&quot;</span>)},
)
transcription = openai_client.audio.transcriptions.create(
model=model_id,
file=<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;2086-149220-0033.wav&quot;</span>, <span class="hljs-string">&quot;rb&quot;</span>),
response_format=<span class="hljs-string">&quot;json&quot;</span>,
)
<span class="hljs-built_in">print</span>(transcription.text)
<span class="hljs-comment"># Well, I don&#x27;t wish to see it any more, observed Phebe, turning away her eyes. It is certainly very like the old portrait.</span>`,lang:"python",wrap:!1}}),Be=new b({props:{title:"cURL",local:"curl",headingTag:"h3"}}),Fe=new U({props:{code:"b3MuZW52aXJvbiU1QiUyMkFQSV9VUkwlMjIlNUQlMjAlM0QlMjBhcGlfdXJsJTBBb3MuZW52aXJvbiU1QiUyMkFQSV9LRVklMjIlNUQlMjAlM0QlMjBhcGlfa2V5",highlighted:`os.environ[<span class="hljs-string">&quot;API_URL&quot;</span>] = api_url
os.environ[<span class="hljs-string">&quot;API_KEY&quot;</span>] = api_key`,lang:"python",wrap:!1}}),Ne=new U({props:{code:"IWN1cmwlMjAtc1MlMjAlMjRBUElfVVJMJTJGYXVkaW8lMkZ0cmFuc2NyaXB0aW9ucyUyMCU1QyUwQSUyMCUyMCUyMCUyMC1IJTIwJTIyQXV0aG9yaXphdGlvbiUzQSUyMEJlYXJlciUyMCUyNEFQSV9LRVklMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtSCUyMCUyMmF6dXJlbWwtbW9kZWwtZGVwbG95bWVudCUzQSUyMCUyNERFUExPWU1FTlRfTkFNRSUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC1IJTIwJTIyQ29udGVudC1UeXBlJTNBJTIwbXVsdGlwYXJ0JTJGZm9ybS1kYXRhJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLUYlMjBmaWxlJTNEJTQwMjA4Ni0xNDkyMjAtMDAzMy53YXYlMjAlNUMlMEElMjAlMjAlMjAlMjAtRiUyMG1vZGVsJTNEbnZpZGlhJTJGcGFyYWtlZXQtdGR0LTAuNmItdjI=",highlighted:`!curl -sS $API_URL/audio/transcriptions \\
-H <span class="hljs-string">&quot;Authorization: Bearer $API_KEY&quot;</span> \\
-H <span class="hljs-string">&quot;azureml-model-deployment: $DEPLOYMENT_NAME&quot;</span> \\
-H <span class="hljs-string">&quot;Content-Type: multipart/form-data&quot;</span> \\
-F file=@<span class="hljs-number">2086</span>-<span class="hljs-number">149220</span>-<span class="hljs-number">0033.</span>wav \\
-F model=nvidia/parakeet-tdt-<span class="hljs-number">0.6</span>b-v2`,lang:"python",wrap:!1}}),Se=new b({props:{title:"Gradio",local:"gradio",headingTag:"h3"}}),W=new I({props:{$$slots:{default:[Ql]},$$scope:{ctx:T}}}),Qe=new U({props:{code:"JTI1cGlwJTIwaW5zdGFsbCUyMGdyYWRpbyUyMC0tdXBncmFkZSUyMC0tcXVpZXQ=",highlighted:"%pip install gradio --upgrade --quiet",lang:"python",wrap:!1}}),He=new U({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwcGF0aGxpYiUyMGltcG9ydCUyMFBhdGglMEElMEFpbXBvcnQlMjBncmFkaW8lMjBhcyUyMGdyJTBBZnJvbSUyMG9wZW5haSUyMGltcG9ydCUyME9wZW5BSSUwQSUwQW9wZW5haV9jbGllbnQlMjAlM0QlMjBPcGVuQUkoJTBBJTIwJTIwJTIwJTIwYmFzZV91cmwlM0Rvcy5nZXRlbnYoJTIyQVBJX1VSTCUyMiklMkMlMEElMjAlMjAlMjAlMjBhcGlfa2V5JTNEb3MuZ2V0ZW52KCUyMkFQSV9LRVklMjIpJTJDJTBBJTIwJTIwJTIwJTIwZGVmYXVsdF9oZWFkZXJzJTNEJTdCJTIyYXp1cmVtbC1tb2RlbC1kZXBsb3ltZW50JTIyJTNBJTIwb3MuZ2V0ZW52KCUyMkRFUExPWU1FTlRfTkFNRSUyMiklN0QlMEEpJTBBJTBBZGVmJTIwdHJhbnNjcmliZShhdWRpbyUzQSUyMFBhdGglMkMlMjB0ZW1wZXJhdHVyZSUzQSUyMGZsb2F0JTIwJTNEJTIwMS4wKSUyMC0lM0UlMjBzdHIlM0ElMEElMjAlMjAlMjAlMjByZXR1cm4lMjBvcGVuYWlfY2xpZW50LmF1ZGlvLnRyYW5zY3JpcHRpb25zLmNyZWF0ZSglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBtb2RlbCUzRG1vZGVsX2lkJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZmlsZSUzRG9wZW4oYXVkaW8lMkMlMjAlMjJyYiUyMiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB0ZW1wZXJhdHVyZSUzRHRlbXBlcmF0dXJlJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmVzcG9uc2VfZm9ybWF0JTNEJTIydGV4dCUyMiUyQyUwQSUyMCUyMCUyMCUyMCklMEElMEFkZW1vJTIwJTNEJTIwZ3IuSW50ZXJmYWNlKCUwQSUyMCUyMCUyMCUyMGZuJTNEdHJhbnNjcmliZSUyQyUwQSUyMCUyMCUyMCUyMGlucHV0cyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMGh0dHBzJTNBJTJGJTJGd3d3LmdyYWRpby5hcHAlMkZkb2NzJTJGZ3JhZGlvJTJGYXVkaW8lMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBnci5BdWRpbyh0eXBlJTNEJTIyZmlsZXBhdGglMjIlMkMlMjBzdHJlYW1pbmclM0RGYWxzZSUyQyUyMGxhYmVsJTNEJTIyVXBsb2FkJTIwb3IlMjBSZWNvcmQlMjBBdWRpbyUyMiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBnci5TbGlkZXIoMCUyQyUyMDElMkMlMjB2YWx1ZSUzRDAuMCUyQyUyMHN0ZXAlM0QwLjElMkMlMjBsYWJlbCUzRCUyMlRlbXBlcmF0dXJlJTIyKSUwQSUyMCUyMCUyMCUyMCU1RCUyQyUwQSUyMCUyMCUyMCUyMG91dHB1dHMlM0Rnci5UZXh0Ym94KGxhYmVsJTNEJTIyVHJhbnNjcmliZWQlMjBUZXh0JTIyKSUyQyUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIyTlZJRElBJTIwUGFyYWtlZXQlMjBvbiUyME1pY3Jvc29mdCUyMEZvdW5kcnklMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMlVwbG9hZCUyMG9yJTIwcmVjb3JkJTIwYXVkaW8lMjBhbmQlMjBnZXQlMjB0aGUlMjB0cmFuc2NyaWJlZCUyMHRleHQlMjB1c2luZyUyME5WSURJQSUyMFBhcmFrZWV0JTIwb24lMjBNaWNyb3NvZnQlMjBGb3VuZHJ5JTIwdmlhJTIwdGhlJTIwT3BlbkFJJ3MlMjBUcmFuc2NyaXB0aW9uJTIwQVBJLiUyMiUyQyUwQSklMEElMEFkZW1vLmxhdW5jaCgp",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> pathlib <span class="hljs-keyword">import</span> Path
<span class="hljs-keyword">import</span> gradio <span class="hljs-keyword">as</span> gr
<span class="hljs-keyword">from</span> openai <span class="hljs-keyword">import</span> OpenAI
openai_client = OpenAI(
base_url=os.getenv(<span class="hljs-string">&quot;API_URL&quot;</span>),
api_key=os.getenv(<span class="hljs-string">&quot;API_KEY&quot;</span>),
default_headers={<span class="hljs-string">&quot;azureml-model-deployment&quot;</span>: os.getenv(<span class="hljs-string">&quot;DEPLOYMENT_NAME&quot;</span>)}
)
<span class="hljs-keyword">def</span> <span class="hljs-title function_">transcribe</span>(<span class="hljs-params">audio: Path, temperature: <span class="hljs-built_in">float</span> = <span class="hljs-number">1.0</span></span>) -&gt; <span class="hljs-built_in">str</span>:
<span class="hljs-keyword">return</span> openai_client.audio.transcriptions.create(
model=model_id,
file=<span class="hljs-built_in">open</span>(audio, <span class="hljs-string">&quot;rb&quot;</span>),
temperature=temperature,
response_format=<span class="hljs-string">&quot;text&quot;</span>,
)
demo = gr.Interface(
fn=transcribe,
inputs=[
<span class="hljs-comment"># https://www.gradio.app/docs/gradio/audio</span>
gr.Audio(<span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;filepath&quot;</span>, streaming=<span class="hljs-literal">False</span>, label=<span class="hljs-string">&quot;Upload or Record Audio&quot;</span>),
gr.Slider(<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, value=<span class="hljs-number">0.0</span>, step=<span class="hljs-number">0.1</span>, label=<span class="hljs-string">&quot;Temperature&quot;</span>)
],
outputs=gr.Textbox(label=<span class="hljs-string">&quot;Transcribed Text&quot;</span>),
title=<span class="hljs-string">&quot;NVIDIA Parakeet on Microsoft Foundry&quot;</span>,
description=<span class="hljs-string">&quot;Upload or record audio and get the transcribed text using NVIDIA Parakeet on Microsoft Foundry via the OpenAI&#x27;s Transcription API.&quot;</span>,
)
demo.launch()`,lang:"python",wrap:!1}}),Xe=new b({props:{title:"Release resources",local:"release-resources",headingTag:"h2"}}),Ye=new U({props:{code:"Y2xpZW50Lm9ubGluZV9lbmRwb2ludHMuYmVnaW5fZGVsZXRlKG5hbWUlM0Rvcy5nZXRlbnYoJTIyRU5EUE9JTlRfTkFNRSUyMikpLnJlc3VsdCgp",highlighted:'client.online_endpoints.begin_delete(name=os.getenv(<span class="hljs-string">&quot;ENDPOINT_NAME&quot;</span>)).result()',lang:"python",wrap:!1}}),De=new b({props:{title:"Conclusion",local:"conclusion",headingTag:"h2"}}),B=new I({props:{$$slots:{default:[Hl]},$$scope:{ctx:T}}}),et=new Wl({props:{source:"https://github.com/huggingface/Microsoft-Azure/blob/main/docs/source/foundry/examples/deploy-nvidia-parakeet-asr.mdx"}}),{c(){i=r("meta"),f=a(),o=r("p"),g=a(),d($.$$.fragment),J=a(),d(j.$$.fragment),v=a(),w=r("p"),w.innerHTML=C,nt=a(),L=r("p"),L.textContent=zn,lt=a(),F=r("p"),F.textContent=_n,at=a(),st=r("hr"),it=a(),N=r("p"),N.innerHTML=Vn,ot=a(),G=r("p"),G.innerHTML=Wn,rt=a(),S=r("p"),S.textContent=Bn,pt=a(),x=r("ul"),x.innerHTML=Ln,ut=a(),Q=r("p"),Q.innerHTML=Fn,dt=a(),H=r("p"),H.innerHTML=Nn,Mt=a(),q=r("p"),q.innerHTML=Gn,ct=a(),d(k.$$.fragment),mt=a(),d(X.$$.fragment),ht=a(),P=r("p"),P.innerHTML=Sn,yt=a(),Y=r("ul"),Y.innerHTML=xn,ft=a(),D=r("p"),D.innerHTML=Qn,gt=a(),d(O.$$.fragment),wt=a(),K=r("p"),K.innerHTML=Hn,Tt=a(),d(ee.$$.fragment),Ut=a(),te=r("p"),te.innerHTML=qn,$t=a(),ne=r("p"),ne.textContent=Xn,Jt=a(),d(le.$$.fragment),bt=a(),ae=r("p"),ae.textContent=Pn,jt=a(),d(E.$$.fragment),vt=a(),d(se.$$.fragment),It=a(),d(ie.$$.fragment),At=a(),oe=r("p"),oe.innerHTML=Yn,Ct=a(),d(Z.$$.fragment),kt=a(),d(re.$$.fragment),Et=a(),d(pe.$$.fragment),Zt=a(),ue=r("p"),ue.innerHTML=Dn,Rt=a(),d(de.$$.fragment),zt=a(),d(R.$$.fragment),_t=a(),Me=r("p"),Me.innerHTML=On,Vt=a(),d(z.$$.fragment),Wt=a(),d(ce.$$.fragment),Bt=a(),d(me.$$.fragment),Lt=a(),he=r("p"),he.innerHTML=Kn,Ft=a(),d(_.$$.fragment),Nt=a(),d(ye.$$.fragment),Gt=a(),fe=r("p"),fe.innerHTML=el,St=a(),ge=r("p"),ge.innerHTML=tl,xt=a(),we=r("p"),we.innerHTML=nl,Qt=a(),d(Te.$$.fragment),Ht=a(),Ue=r("p"),Ue.innerHTML=ll,qt=a(),$e=r("p"),$e.innerHTML=al,Xt=a(),Je=r("p"),Je.innerHTML=sl,Pt=a(),d(be.$$.fragment),Yt=a(),je=r("p"),je.innerHTML=il,Dt=a(),d(ve.$$.fragment),Ot=a(),d(Ie.$$.fragment),Kt=a(),Ae=r("p"),Ae.innerHTML=ol,en=a(),d(Ce.$$.fragment),tn=a(),d(ke.$$.fragment),nn=a(),Ee=r("p"),Ee.innerHTML=rl,ln=a(),d(Ze.$$.fragment),an=a(),Re=r("p"),Re.innerHTML=pl,sn=a(),d(ze.$$.fragment),on=a(),d(V.$$.fragment),rn=a(),_e=r("p"),_e.innerHTML=ul,pn=a(),Ve=r("p"),Ve.innerHTML=dl,un=a(),d(We.$$.fragment),dn=a(),d(Be.$$.fragment),Mn=a(),Le=r("p"),Le.innerHTML=Ml,cn=a(),d(Fe.$$.fragment),mn=a(),d(Ne.$$.fragment),hn=a(),Ge=r("p"),Ge.textContent=cl,yn=a(),d(Se.$$.fragment),fn=a(),xe=r("p"),xe.innerHTML=ml,gn=a(),d(W.$$.fragment),wn=a(),d(Qe.$$.fragment),Tn=a(),d(He.$$.fragment),Un=a(),qe=r("p"),qe.innerHTML=hl,$n=a(),d(Xe.$$.fragment),Jn=a(),Pe=r("p"),Pe.textContent=yl,bn=a(),d(Ye.$$.fragment),jn=a(),d(De.$$.fragment),vn=a(),Oe=r("p"),Oe.textContent=fl,In=a(),Ke=r("p"),Ke.innerHTML=gl,An=a(),Cn=r("hr"),kn=a(),d(B.$$.fragment),En=a(),d(et.$$.fragment),Zn=a(),tt=r("p"),this.h()},l(e){const t=zl("svelte-u9bgzb",document.head);i=p(t,"META",{name:!0,content:!0}),t.forEach(n),f=s(e),o=p(e,"P",{}),Al(o).forEach(n),g=s(e),M($.$$.fragment,e),J=s(e),M(j.$$.fragment,e),v=s(e),w=p(e,"P",{"data-svelte-h":!0}),u(w)!=="svelte-xbaexh"&&(w.innerHTML=C),nt=s(e),L=p(e,"P",{"data-svelte-h":!0}),u(L)!=="svelte-7mu2ug"&&(L.textContent=zn),lt=s(e),F=p(e,"P",{"data-svelte-h":!0}),u(F)!=="svelte-1wmdo3u"&&(F.textContent=_n),at=s(e),st=p(e,"HR",{}),it=s(e),N=p(e,"P",{"data-svelte-h":!0}),u(N)!=="svelte-19lausg"&&(N.innerHTML=Vn),ot=s(e),G=p(e,"P",{"data-svelte-h":!0}),u(G)!=="svelte-17a4trs"&&(G.innerHTML=Wn),rt=s(e),S=p(e,"P",{"data-svelte-h":!0}),u(S)!=="svelte-1mr2e6"&&(S.textContent=Bn),pt=s(e),x=p(e,"UL",{"data-svelte-h":!0}),u(x)!=="svelte-eb82nc"&&(x.innerHTML=Ln),ut=s(e),Q=p(e,"P",{"data-svelte-h":!0}),u(Q)!=="svelte-1rlyohd"&&(Q.innerHTML=Fn),dt=s(e),H=p(e,"P",{"data-svelte-h":!0}),u(H)!=="svelte-1dp3alw"&&(H.innerHTML=Nn),Mt=s(e),q=p(e,"P",{"data-svelte-h":!0}),u(q)!=="svelte-1gli84r"&&(q.innerHTML=Gn),ct=s(e),M(k.$$.fragment,e),mt=s(e),M(X.$$.fragment,e),ht=s(e),P=p(e,"P",{"data-svelte-h":!0}),u(P)!=="svelte-dnkqle"&&(P.innerHTML=Sn),yt=s(e),Y=p(e,"UL",{"data-svelte-h":!0}),u(Y)!=="svelte-7cjyin"&&(Y.innerHTML=xn),ft=s(e),D=p(e,"P",{"data-svelte-h":!0}),u(D)!=="svelte-1z0klvb"&&(D.innerHTML=Qn),gt=s(e),M(O.$$.fragment,e),wt=s(e),K=p(e,"P",{"data-svelte-h":!0}),u(K)!=="svelte-bexho5"&&(K.innerHTML=Hn),Tt=s(e),M(ee.$$.fragment,e),Ut=s(e),te=p(e,"P",{"data-svelte-h":!0}),u(te)!=="svelte-1v277rw"&&(te.innerHTML=qn),$t=s(e),ne=p(e,"P",{"data-svelte-h":!0}),u(ne)!=="svelte-6pxttm"&&(ne.textContent=Xn),Jt=s(e),M(le.$$.fragment,e),bt=s(e),ae=p(e,"P",{"data-svelte-h":!0}),u(ae)!=="svelte-1wrtw53"&&(ae.textContent=Pn),jt=s(e),M(E.$$.fragment,e),vt=s(e),M(se.$$.fragment,e),It=s(e),M(ie.$$.fragment,e),At=s(e),oe=p(e,"P",{"data-svelte-h":!0}),u(oe)!=="svelte-1b24o0p"&&(oe.innerHTML=Yn),Ct=s(e),M(Z.$$.fragment,e),kt=s(e),M(re.$$.fragment,e),Et=s(e),M(pe.$$.fragment,e),Zt=s(e),ue=p(e,"P",{"data-svelte-h":!0}),u(ue)!=="svelte-16ken9o"&&(ue.innerHTML=Dn),Rt=s(e),M(de.$$.fragment,e),zt=s(e),M(R.$$.fragment,e),_t=s(e),Me=p(e,"P",{"data-svelte-h":!0}),u(Me)!=="svelte-1f4out7"&&(Me.innerHTML=On),Vt=s(e),M(z.$$.fragment,e),Wt=s(e),M(ce.$$.fragment,e),Bt=s(e),M(me.$$.fragment,e),Lt=s(e),he=p(e,"P",{"data-svelte-h":!0}),u(he)!=="svelte-18y1fgh"&&(he.innerHTML=Kn),Ft=s(e),M(_.$$.fragment,e),Nt=s(e),M(ye.$$.fragment,e),Gt=s(e),fe=p(e,"P",{"data-svelte-h":!0}),u(fe)!=="svelte-11h6uq1"&&(fe.innerHTML=el),St=s(e),ge=p(e,"P",{"data-svelte-h":!0}),u(ge)!=="svelte-cs8ulb"&&(ge.innerHTML=tl),xt=s(e),we=p(e,"P",{"data-svelte-h":!0}),u(we)!=="svelte-1bmop2"&&(we.innerHTML=nl),Qt=s(e),M(Te.$$.fragment,e),Ht=s(e),Ue=p(e,"P",{"data-svelte-h":!0}),u(Ue)!=="svelte-a04ns"&&(Ue.innerHTML=ll),qt=s(e),$e=p(e,"P",{"data-svelte-h":!0}),u($e)!=="svelte-1l8sq3y"&&($e.innerHTML=al),Xt=s(e),Je=p(e,"P",{"data-svelte-h":!0}),u(Je)!=="svelte-932sht"&&(Je.innerHTML=sl),Pt=s(e),M(be.$$.fragment,e),Yt=s(e),je=p(e,"P",{"data-svelte-h":!0}),u(je)!=="svelte-1x7qtcm"&&(je.innerHTML=il),Dt=s(e),M(ve.$$.fragment,e),Ot=s(e),M(Ie.$$.fragment,e),Kt=s(e),Ae=p(e,"P",{"data-svelte-h":!0}),u(Ae)!=="svelte-nwqzmz"&&(Ae.innerHTML=ol),en=s(e),M(Ce.$$.fragment,e),tn=s(e),M(ke.$$.fragment,e),nn=s(e),Ee=p(e,"P",{"data-svelte-h":!0}),u(Ee)!=="svelte-5f5nk0"&&(Ee.innerHTML=rl),ln=s(e),M(Ze.$$.fragment,e),an=s(e),Re=p(e,"P",{"data-svelte-h":!0}),u(Re)!=="svelte-1kxx785"&&(Re.innerHTML=pl),sn=s(e),M(ze.$$.fragment,e),on=s(e),M(V.$$.fragment,e),rn=s(e),_e=p(e,"P",{"data-svelte-h":!0}),u(_e)!=="svelte-1qxthjn"&&(_e.innerHTML=ul),pn=s(e),Ve=p(e,"P",{"data-svelte-h":!0}),u(Ve)!=="svelte-1t8h4hs"&&(Ve.innerHTML=dl),un=s(e),M(We.$$.fragment,e),dn=s(e),M(Be.$$.fragment,e),Mn=s(e),Le=p(e,"P",{"data-svelte-h":!0}),u(Le)!=="svelte-6rxgjf"&&(Le.innerHTML=Ml),cn=s(e),M(Fe.$$.fragment,e),mn=s(e),M(Ne.$$.fragment,e),hn=s(e),Ge=p(e,"P",{"data-svelte-h":!0}),u(Ge)!=="svelte-1a9sy5q"&&(Ge.textContent=cl),yn=s(e),M(Se.$$.fragment,e),fn=s(e),xe=p(e,"P",{"data-svelte-h":!0}),u(xe)!=="svelte-84t7ko"&&(xe.innerHTML=ml),gn=s(e),M(W.$$.fragment,e),wn=s(e),M(Qe.$$.fragment,e),Tn=s(e),M(He.$$.fragment,e),Un=s(e),qe=p(e,"P",{"data-svelte-h":!0}),u(qe)!=="svelte-tgtet"&&(qe.innerHTML=hl),$n=s(e),M(Xe.$$.fragment,e),Jn=s(e),Pe=p(e,"P",{"data-svelte-h":!0}),u(Pe)!=="svelte-dzkovk"&&(Pe.textContent=yl),bn=s(e),M(Ye.$$.fragment,e),jn=s(e),M(De.$$.fragment,e),vn=s(e),Oe=p(e,"P",{"data-svelte-h":!0}),u(Oe)!=="svelte-6ex9f5"&&(Oe.textContent=fl),In=s(e),Ke=p(e,"P",{"data-svelte-h":!0}),u(Ke)!=="svelte-1nopug0"&&(Ke.innerHTML=gl),An=s(e),Cn=p(e,"HR",{}),kn=s(e),M(B.$$.fragment,e),En=s(e),M(et.$$.fragment,e),Zn=s(e),tt=p(e,"P",{}),Al(tt).forEach(n),this.h()},h(){Cl(i,"name","hf:doc:metadata"),Cl(i,"content",Xl)},m(e,t){_l(document.head,i),l(e,f,t),l(e,o,t),l(e,g,t),c($,e,t),l(e,J,t),c(j,e,t),l(e,v,t),l(e,w,t),l(e,nt,t),l(e,L,t),l(e,lt,t),l(e,F,t),l(e,at,t),l(e,st,t),l(e,it,t),l(e,N,t),l(e,ot,t),l(e,G,t),l(e,rt,t),l(e,S,t),l(e,pt,t),l(e,x,t),l(e,ut,t),l(e,Q,t),l(e,dt,t),l(e,H,t),l(e,Mt,t),l(e,q,t),l(e,ct,t),c(k,e,t),l(e,mt,t),c(X,e,t),l(e,ht,t),l(e,P,t),l(e,yt,t),l(e,Y,t),l(e,ft,t),l(e,D,t),l(e,gt,t),c(O,e,t),l(e,wt,t),l(e,K,t),l(e,Tt,t),c(ee,e,t),l(e,Ut,t),l(e,te,t),l(e,$t,t),l(e,ne,t),l(e,Jt,t),c(le,e,t),l(e,bt,t),l(e,ae,t),l(e,jt,t),c(E,e,t),l(e,vt,t),c(se,e,t),l(e,It,t),c(ie,e,t),l(e,At,t),l(e,oe,t),l(e,Ct,t),c(Z,e,t),l(e,kt,t),c(re,e,t),l(e,Et,t),c(pe,e,t),l(e,Zt,t),l(e,ue,t),l(e,Rt,t),c(de,e,t),l(e,zt,t),c(R,e,t),l(e,_t,t),l(e,Me,t),l(e,Vt,t),c(z,e,t),l(e,Wt,t),c(ce,e,t),l(e,Bt,t),c(me,e,t),l(e,Lt,t),l(e,he,t),l(e,Ft,t),c(_,e,t),l(e,Nt,t),c(ye,e,t),l(e,Gt,t),l(e,fe,t),l(e,St,t),l(e,ge,t),l(e,xt,t),l(e,we,t),l(e,Qt,t),c(Te,e,t),l(e,Ht,t),l(e,Ue,t),l(e,qt,t),l(e,$e,t),l(e,Xt,t),l(e,Je,t),l(e,Pt,t),c(be,e,t),l(e,Yt,t),l(e,je,t),l(e,Dt,t),c(ve,e,t),l(e,Ot,t),c(Ie,e,t),l(e,Kt,t),l(e,Ae,t),l(e,en,t),c(Ce,e,t),l(e,tn,t),c(ke,e,t),l(e,nn,t),l(e,Ee,t),l(e,ln,t),c(Ze,e,t),l(e,an,t),l(e,Re,t),l(e,sn,t),c(ze,e,t),l(e,on,t),c(V,e,t),l(e,rn,t),l(e,_e,t),l(e,pn,t),l(e,Ve,t),l(e,un,t),c(We,e,t),l(e,dn,t),c(Be,e,t),l(e,Mn,t),l(e,Le,t),l(e,cn,t),c(Fe,e,t),l(e,mn,t),c(Ne,e,t),l(e,hn,t),l(e,Ge,t),l(e,yn,t),c(Se,e,t),l(e,fn,t),l(e,xe,t),l(e,gn,t),c(W,e,t),l(e,wn,t),c(Qe,e,t),l(e,Tn,t),c(He,e,t),l(e,Un,t),l(e,qe,t),l(e,$n,t),c(Xe,e,t),l(e,Jn,t),l(e,Pe,t),l(e,bn,t),c(Ye,e,t),l(e,jn,t),c(De,e,t),l(e,vn,t),l(e,Oe,t),l(e,In,t),l(e,Ke,t),l(e,An,t),l(e,Cn,t),l(e,kn,t),c(B,e,t),l(e,En,t),c(et,e,t),l(e,Zn,t),l(e,tt,t),Rn=!0},p(e,[t]){const wl={};t&2&&(wl.$$scope={dirty:t,ctx:e}),k.$set(wl);const Tl={};t&2&&(Tl.$$scope={dirty:t,ctx:e}),E.$set(Tl);const Ul={};t&2&&(Ul.$$scope={dirty:t,ctx:e}),Z.$set(Ul);const $l={};t&2&&($l.$$scope={dirty:t,ctx:e}),R.$set($l);const Jl={};t&2&&(Jl.$$scope={dirty:t,ctx:e}),z.$set(Jl);const bl={};t&2&&(bl.$$scope={dirty:t,ctx:e}),_.$set(bl);const jl={};t&2&&(jl.$$scope={dirty:t,ctx:e}),V.$set(jl);const vl={};t&2&&(vl.$$scope={dirty:t,ctx:e}),W.$set(vl);const Il={};t&2&&(Il.$$scope={dirty:t,ctx:e}),B.$set(Il)},i(e){Rn||(m($.$$.fragment,e),m(j.$$.fragment,e),m(k.$$.fragment,e),m(X.$$.fragment,e),m(O.$$.fragment,e),m(ee.$$.fragment,e),m(le.$$.fragment,e),m(E.$$.fragment,e),m(se.$$.fragment,e),m(ie.$$.fragment,e),m(Z.$$.fragment,e),m(re.$$.fragment,e),m(pe.$$.fragment,e),m(de.$$.fragment,e),m(R.$$.fragment,e),m(z.$$.fragment,e),m(ce.$$.fragment,e),m(me.$$.fragment,e),m(_.$$.fragment,e),m(ye.$$.fragment,e),m(Te.$$.fragment,e),m(be.$$.fragment,e),m(ve.$$.fragment,e),m(Ie.$$.fragment,e),m(Ce.$$.fragment,e),m(ke.$$.fragment,e),m(Ze.$$.fragment,e),m(ze.$$.fragment,e),m(V.$$.fragment,e),m(We.$$.fragment,e),m(Be.$$.fragment,e),m(Fe.$$.fragment,e),m(Ne.$$.fragment,e),m(Se.$$.fragment,e),m(W.$$.fragment,e),m(Qe.$$.fragment,e),m(He.$$.fragment,e),m(Xe.$$.fragment,e),m(Ye.$$.fragment,e),m(De.$$.fragment,e),m(B.$$.fragment,e),m(et.$$.fragment,e),Rn=!0)},o(e){h($.$$.fragment,e),h(j.$$.fragment,e),h(k.$$.fragment,e),h(X.$$.fragment,e),h(O.$$.fragment,e),h(ee.$$.fragment,e),h(le.$$.fragment,e),h(E.$$.fragment,e),h(se.$$.fragment,e),h(ie.$$.fragment,e),h(Z.$$.fragment,e),h(re.$$.fragment,e),h(pe.$$.fragment,e),h(de.$$.fragment,e),h(R.$$.fragment,e),h(z.$$.fragment,e),h(ce.$$.fragment,e),h(me.$$.fragment,e),h(_.$$.fragment,e),h(ye.$$.fragment,e),h(Te.$$.fragment,e),h(be.$$.fragment,e),h(ve.$$.fragment,e),h(Ie.$$.fragment,e),h(Ce.$$.fragment,e),h(ke.$$.fragment,e),h(Ze.$$.fragment,e),h(ze.$$.fragment,e),h(V.$$.fragment,e),h(We.$$.fragment,e),h(Be.$$.fragment,e),h(Fe.$$.fragment,e),h(Ne.$$.fragment,e),h(Se.$$.fragment,e),h(W.$$.fragment,e),h(Qe.$$.fragment,e),h(He.$$.fragment,e),h(Xe.$$.fragment,e),h(Ye.$$.fragment,e),h(De.$$.fragment,e),h(B.$$.fragment,e),h(et.$$.fragment,e),Rn=!1},d(e){e&&(n(f),n(o),n(g),n(J),n(v),n(w),n(nt),n(L),n(lt),n(F),n(at),n(st),n(it),n(N),n(ot),n(G),n(rt),n(S),n(pt),n(x),n(ut),n(Q),n(dt),n(H),n(Mt),n(q),n(ct),n(mt),n(ht),n(P),n(yt),n(Y),n(ft),n(D),n(gt),n(wt),n(K),n(Tt),n(Ut),n(te),n($t),n(ne),n(Jt),n(bt),n(ae),n(jt),n(vt),n(It),n(At),n(oe),n(Ct),n(kt),n(Et),n(Zt),n(ue),n(Rt),n(zt),n(_t),n(Me),n(Vt),n(Wt),n(Bt),n(Lt),n(he),n(Ft),n(Nt),n(Gt),n(fe),n(St),n(ge),n(xt),n(we),n(Qt),n(Ht),n(Ue),n(qt),n($e),n(Xt),n(Je),n(Pt),n(Yt),n(je),n(Dt),n(Ot),n(Kt),n(Ae),n(en),n(tn),n(nn),n(Ee),n(ln),n(an),n(Re),n(sn),n(on),n(rn),n(_e),n(pn),n(Ve),n(un),n(dn),n(Mn),n(Le),n(cn),n(mn),n(hn),n(Ge),n(yn),n(fn),n(xe),n(gn),n(wn),n(Tn),n(Un),n(qe),n($n),n(Jn),n(Pe),n(bn),n(jn),n(vn),n(Oe),n(In),n(Ke),n(An),n(Cn),n(kn),n(En),n(Zn),n(tt)),n(i),y($,e),y(j,e),y(k,e),y(X,e),y(O,e),y(ee,e),y(le,e),y(E,e),y(se,e),y(ie,e),y(Z,e),y(re,e),y(pe,e),y(de,e),y(R,e),y(z,e),y(ce,e),y(me,e),y(_,e),y(ye,e),y(Te,e),y(be,e),y(ve,e),y(Ie,e),y(Ce,e),y(ke,e),y(Ze,e),y(ze,e),y(V,e),y(We,e),y(Be,e),y(Fe,e),y(Ne,e),y(Se,e),y(W,e),y(Qe,e),y(He,e),y(Xe,e),y(Ye,e),y(De,e),y(B,e),y(et,e)}}}const Xl='{"title":"Deploy NVIDIA Parakeet for Automatic Speech Recognition (ASR) on Microsoft Foundry","local":"deploy-nvidia-parakeet-for-automatic-speech-recognition-asr-on-microsoft-foundry","sections":[{"title":"Pre-requisites","local":"pre-requisites","sections":[],"depth":2},{"title":"Setup and installation","local":"setup-and-installation","sections":[],"depth":2},{"title":"Authenticate to Azure Machine Learning","local":"authenticate-to-azure-machine-learning","sections":[],"depth":2},{"title":"Create and Deploy Foundry Endpoint","local":"create-and-deploy-foundry-endpoint","sections":[],"depth":2},{"title":"Send requests to the Foundry Endpoint","local":"send-requests-to-the-foundry-endpoint","sections":[{"title":"Python requests","local":"python-requests","sections":[],"depth":3},{"title":"OpenAI Python SDK","local":"openai-python-sdk","sections":[],"depth":3},{"title":"cURL","local":"curl","sections":[],"depth":3},{"title":"Gradio","local":"gradio","sections":[],"depth":3}],"depth":2},{"title":"Release resources","local":"release-resources","sections":[],"depth":2},{"title":"Conclusion","local":"conclusion","sections":[],"depth":2}],"depth":1}';function Pl(T){return El(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ta extends Zl{constructor(i){super(),Rl(this,i,Pl,ql,kl,{})}}export{ta as component};

Xet Storage Details

Size:
52.7 kB
·
Xet hash:
2f40f15dc2df3f45abcad97430430ad6c1730f82e10da806c68380c505034329

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.