import{s as Rs,f as ks,o as Vs,n as Hs}from"../chunks/scheduler.65852ee5.js";import{S as _s,i as Xs,g as i,s as a,r as u,A as Ss,h as o,f as l,c as s,j as zt,u as p,x as r,k as v,y as B,a as n,v as c,d,t as m,w as h}from"../chunks/index.aa74147d.js";import{T as $s}from"../chunks/Tip.bb8ccac8.js";import{D as Ys,C as M}from"../chunks/DocNotebookDropdown.479f4286.js";import{H as b,E as Fs}from"../chunks/EditOnGithub.4eda6a96.js";function zs(Xt){let y,f='Also check out <code>Interface</code>’s <a href="https://www.gradio.app/docs/gradio/interface#interface-from_pipeline" rel="nofollow">from_pipeline</a> constructor which will directly build the <code>Interface</code> from a <code>pipeline</code>.';return{c(){y=i("p"),y.innerHTML=f},l(w){y=o(w,"P",{"data-svelte-h":!0}),r(y)!=="svelte-e72r3l"&&(y.innerHTML=f)},m(w,g){n(w,y,g)},p:Hs,d(w){w&&l(y)}}}function Qs(Xt){let y,f="The output that we get from the call above is a made-up meeting that was generated by the LLM that we are using for text organization. This is because the sample input file isn’t an actual meeting recording. You can tweak the LLM’s prompt to handle this case.";return{c(){y=i("p"),y.textContent=f},l(w){y=o(w,"P",{"data-svelte-h":!0}),r(y)!=="svelte-avohft"&&(y.textContent=f)},m(w,g){n(w,y,g)},p:Hs,d(w){w&&l(y)}}}function Ls(Xt){let y,f,w,g,G,Qt,C,Lt,Z,ia='<em>Authored by: <a href="https://huggingface.co/dmaniloff" rel="nofollow">Diego Maniloff</a></em>',Nt,x,qt,W,oa='In this notebook we will demonstrate how to bring any machine learning model to life using <a href="https://www.gradio.app/" rel="nofollow">Gradio</a>, a library that allows you to create a web demo from any Python function and share it with the world 🌎!',Et,k,ra="📚 This notebook covers:",At,$,ua="<li>Building a <code>Hello, World!</code> demo: The basics of Gradio</li> <li>Moving your demo to Hugging Face Spaces</li> <li>Making it interesting: a real-world example that leverages the 🤗 Hub</li> <li>Some of the cool “batteries included” features that come with Gradio</li>",Pt,H,pa="⏭️ At the end of this notebook you will find a <code>Further Reading</code> list with links to keep going on your own.",Dt,R,Kt,V,ca="To get started install the <code>gradio</code> library along with <code>transformers</code>.",Ot,_,el,X,da=`\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m12.3/12.3 MB\x1B[0m \x1B[31m23.4 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m92.0/92.0 kB\x1B[0m \x1B[31m4.4 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[?25h  Preparing metadata (setup.py) ... \x1B[?25l\x1B[?25hdone
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m318.1/318.1 kB\x1B[0m \x1B[31m23.1 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m75.6/75.6 kB\x1B[0m \x1B[31m3.9 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m145.0/145.0 kB\x1B[0m \x1B[31m1.2 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m10.1/10.1 MB\x1B[0m \x1B[31m30.2 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m62.4/62.4 kB\x1B[0m \x1B[31m4.7 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m129.9/129.9 kB\x1B[0m \x1B[31m2.0 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m77.9/77.9 kB\x1B[0m \x1B[31m5.3 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m58.3/58.3 kB\x1B[0m \x1B[31m4.1 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m71.9/71.9 kB\x1B[0m \x1B[31m4.8 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m53.6/53.6 kB\x1B[0m \x1B[31m1.3 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m307.7/307.7 kB\x1B[0m \x1B[31m19.5 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m341.4/341.4 kB\x1B[0m \x1B[31m18.7 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m3.4/3.4 MB\x1B[0m \x1B[31m36.4 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[2K     \x1B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m \x1B[32m1.2/1.2 MB\x1B[0m \x1B[31m41.4 MB/s\x1B[0m eta \x1B[36m0:00:00\x1B[0m
\x1B[?25h  Building wheel for ffmpy (setup.py) ... \x1B[?25l\x1B[?25hdone
`,tl,S,ll,Y,nl,F,ma="At its core, Gradio turns any Python function into a web interface.",al,z,ha="Say we have a simple function that takes <code>name</code> and <code>intensity</code> as parameters, and returns a string like so:",sl,Q,il,L,ya="If you run this function for the name ‘Diego’ you will get an output string that looks like this:",ol,N,rl,q,Ma=`Hello, Diego!!!
`,ul,E,wa="With Gradio, we can build an interface for this function via the <code>gr.Interface</code> class. All we need to do is pass in the <code>greet</code> function we created above, and the kinds of inputs and outputs that our function expects:",pl,A,cl,P,ba='Notice how we passed in <code>[&quot;text&quot;, &quot;slider&quot;]</code> as inputs and <code>[&quot;text&quot;]</code> as outputs — these are called <a href="https://www.gradio.app/docs/gradio/introduction#components" rel="nofollow">Components</a> in Gradio.',dl,D,fa="That’s all we need for our first demo. Go ahead and try it out 👇🏼! Type your name into the <code>name</code> textbox, slide the intensity that you want, and click <code>Submit</code>.",ml,K,hl,O,ga="Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n\nColab notebook detected. To show errors in colab notebook, set debug=True in launch()\nRunning on public URL: https://b02977526e3600d305.gradio.live\n\nThis share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n",yl,ee,Ml,te,Ta=`At this point you understand how to take a basic Python function and turn it into
a web-ready demo. However, we only did this for a function that is very simple, a bit boring even!`,wl,le,Ja="Let’s consider a more interesting example that highlights the very thing that Gradio was built for: demoing cutting-edge machine learning models. A good friend of mine recently asked me for help with an audio recording of an interview she had done. She needed to convert the audio file into a well-organized text summary. How did I help her? I built a Gradio app!",bl,ne,Ua="Let’s walk through the steps to build the meeting transcription tool. We can think of the process as two parts:",fl,ae,ja="<li>Transcribe the audio file into text</li> <li>Organize the text into sections, paragraphs, lists, etc. We could include summarization here too.</li>",gl,se,Tl,ie,Ia="In this part we will build a demo that handles the first step of the meeting transcription tool: converting audio into text.",Jl,oe,va="As we learned, the key ingredient to building a Gradio demo is to have a Python function that executes the logic we are trying to showcase. For the audio-to-text conversion, we will build our function using the awesome <code>transformers</code> library and its <code>pipeline</code> utility to use a popular audio-to-text model called <code>distil-whisper/distil-large-v3</code>.",Ul,re,Ba="The result is the following <code>transcribe</code> function, which takes as input the audio that we want to convert:",jl,ue,Il,pe,Ga='Now that we have our Python function, we can demo that by passing it into <code>gr.Interface</code>. Notice how in this case the input that the function expects is the audio that we want to convert. Gradio includes a ton useful components, one of which is <a href="https://www.gradio.app/docs/gradio/audio" rel="nofollow">Audio</a>, exactly what we need for our demo 🎶 😎.',vl,ce,Bl,de,Ca="Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n\nColab notebook detected. To show errors in colab notebook, set debug=True in launch()\nRunning on public URL: https://5d107f49734b10fa46.gradio.live\n\nThis share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n",Gl,me,Za="Go ahead and try it out 👆! You can upload an <code>.mp3</code> file or hit the 🎤 button to record your own voice.",Cl,he,xa='For a sample file with an actual meeting recording, you can check out the <a href="https://huggingface.co/datasets/huuuyeah/MeetingBank_Audio" rel="nofollow">MeetingBank_Audio dataset</a> which is a dataset of meetings from city councils of 6 major U.S. cities. For my own testing, I tried out a couple of the <a href="https://huggingface.co/datasets/huuuyeah/MeetingBank_Audio/blob/main/Denver/mp3/Denver-21.zip" rel="nofollow">Denver meetings</a>.',Zl,T,xl,ye,Wl,Me,Wa="For part 2 of the meeting transcription tool, we need to organize the transcribed text from the previous step.",kl,we,ka='Once again, to build a Gradio demo we need the Python function with the logic that we care about. For text organization and summarization, we will use an “instruction-tuned” model that is trained to follow a broad range of tasks. There are many options to pick from such as <a href="https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct" rel="nofollow">meta-llama/Meta-Llama-3-8B-Instruct</a> or <a href="https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3" rel="nofollow">mistralai/Mistral-7B-Instruct-v0.3</a>. For our example we are going to use <a href="https://huggingface.co/microsoft/Phi-3-mini-4k-instruct" rel="nofollow">microsoft/Phi-3-mini-4k-instruct</a>.',$l,be,$a='Just like for part 1, we could leverage the <code>pipeline</code> utility within <code>transformers</code> to do this, but instead we will take this opportunity to showcase the <a href="https://huggingface.co/docs/api-inference/index" rel="nofollow">Serverless Inference API</a>, which is an API within the Hugging Face Hub that allows us to use thousands of publicly accessible (or your own privately permissioned) machine learning models <strong><em>for free</em></strong>! Check out the cookbook section of the Serverless Inferfence API <a href="https://huggingface.co/learn/cookbook/en/enterprise_hub_serverless_inference_api" rel="nofollow">here</a>.',Hl,fe,Ha='Using the Serverless Inferfence API means that instead of calling a model via a pipeline (like we did for the audio conversion part), we will call it from the <code>InferenceClient</code>, which is part of the <code>huggingface_hub</code> library (<a href="https://huggingface.co/docs/huggingface_hub/en/package_reference/login" rel="nofollow">Hub Python Library</a>). And in turn, to use the <code>InferenceClient</code>, we need to log into the 🤗 Hub using <code>notebook_login()</code>, which will produce a dialog box asking for your User Access Token to authenticate with the Hub.',Rl,ge,Ra='You can manage your tokens from your <a href="https://huggingface.co/settings/tokens" rel="nofollow">personal settings page</a>, and please remember to use <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">fine-grained</a> tokens as much as possible for enhanced security.',Vl,Te,_l,Je,Va="Now that we are logged into the Hub, we can write our text processing function using the Serverless Inference API via <code>InferenceClient</code>.",Xl,Ue,_a="The code for this part will be structured into two functions:",Sl,je,Xa="<li><code>build_messages</code>, to format the message prompt into the LLM;</li> <li><code>organize_text</code>, to actually pass the raw meeting text into the LLM for organization (and summarization, depending on the prompt we provide).</li>",Yl,Ie,Fl,ve,zl,Be,Sa="And now that we have our text organization function <code>organize_text</code>, we can build a demo for it as well:",Ql,Ge,Ll,Ce,Ya="Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n\nColab notebook detected. To show errors in colab notebook, set debug=True in launch()\nRunning on public URL: https://ef8938f7aa45bf7bd1.gradio.live\n\nThis share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n",Nl,Ze,Fa="Go ahead and try it out 👆! If you hit “Submit” in the demo above, you will see that the output text is a much clearer and organized version of the transcript, with a title and sections for the different parts of the meeting.",ql,xe,za="See if you can get a summary by playing around with the <code>user_input</code> variable that controls the LLM prompt.",El,We,Al,ke,Qa="At this point we have a function for each of the two steps we want out meeting transcription tool to do:",Pl,$e,La="<li>convert the audio into a text file, and</li> <li>organize that text file into a nicely-formatted meeting document.</li>",Dl,He,Na="All we have to do next is stitch these two functions together and build a demo for the combined steps. In other words, our complete meeting transcription tool is just a new function (which we’ll creatively call <code>meeting_transcript_tool</code> 😀) that takes the output of <code>transcribe</code> and passes it into <code>organize_text</code>:",Kl,Re,Ol,Ve,qa="Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n\nColab notebook detected. To show errors in colab notebook, set debug=True in launch()\nRunning on public URL: https://7c953dd88d7b6f273a.gradio.live\n\nThis share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n",en,_e,Ea="Go ahead and try it out 👆! This is now the full demo of our transcript tool. If you give it an audio file, the output will be the already-organized (and potentially summarized) version of the meeting. Super cool 😎.",tn,Xe,ln,Se,Aa="If you made it this far, now you know the basics of how to create a demo of your machine learning model using Gradio 👏!",nn,Ye,Pa="Up next we are going to show you how to take your brand new demo to Hugging Face Spaces. On top of the ease of use and powerful features of Gradio, moving your demo to 🤗 Spaces gives you the benefit of permanent hosting, ease of deployment each time you update your app, and the ability to share your work with anyone! Do keep in mind that your Space will go to sleep after a while unless you are using it or making changes to it.",an,Fe,Da='The first step is to head over to <a href="https://huggingface.co/new-space" rel="nofollow">https://huggingface.co/new-space</a>, select “Gradio” from the templates, and leave the rest of the options as default for now (you can change these later):',sn,J,Ka,on,ze,Oa='This will result in a newly created Space that you can populate with your demo code. As an example for you to follow, I created the 🤗 Space <code>dmaniloff/meeting-transcript-tool</code>, which you can access <a href="https://huggingface.co/spaces/dmaniloff/meeting-transcript-tool" rel="nofollow">here</a>.',rn,Qe,es="There are two files we need to edit:",un,U,Le,St,ts="<code>app.py</code> — This is where the demo code lives. It should look something like this:",na,Ne,aa,qe,Yt,ls="<code>requirements.txt</code> — This is where we tell our Space about the libraries it will need. It should look something like this:",sa,Ee,pn,Ae,cn,Pe,ns="Gradio comes with lots of cool functionality right out of the box. We won’t be able to cover all of it in this notebook, but here’s 3 that we will check out:",dn,De,as="<li>Access as an API</li> <li>Sharing via public URL</li> <li>Flagging</li>",mn,Ke,hn,Oe,ss="One of the benefits of building your web demos with Gradio is that you automatically get an API 🙌! This means that you can access the functionality of your Python function using a standard HTTP client like <code>curl</code> or the Python <code>requests</code> library.",yn,et,is='If you look closely at the demos we created above, you will see at the bottom there is a link that says “Use via API”. If you click on it in the Space I created (<a href="https://huggingface.co/spaces/dmaniloff/meeting-transcript-tool/blob/main/app.py" rel="nofollow">dmaniloff/meeting-transcript-tool</a>), you will see the following:',Mn,j,os,wn,tt,rs="Let’s go ahead and copy-paste that code below to use our Space as an API:",bn,lt,fn,nt,us=`Requirement already satisfied: gradio_client in /usr/local/lib/python3.10/dist-packages (1.0.1)
Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from gradio_client) (2023.6.0)
Requirement already satisfied: httpx>=0.24.1 in /usr/local/lib/python3.10/dist-packages (from gradio_client) (0.27.0)
Requirement already satisfied: huggingface-hub>=0.19.3 in /usr/local/lib/python3.10/dist-packages (from gradio_client) (0.23.4)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from gradio_client) (24.1)
Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.10/dist-packages (from gradio_client) (4.12.2)
Requirement already satisfied: websockets<12.0,>=10.0 in /usr/local/lib/python3.10/dist-packages (from gradio_client) (11.0.3)
Requirement already satisfied: anyio in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio_client) (3.7.1)
Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio_client) (2024.6.2)
Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio_client) (1.0.5)
Requirement already satisfied: idna in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio_client) (3.7)
Requirement already satisfied: sniffio in /usr/local/lib/python3.10/dist-packages (from httpx>=0.24.1->gradio_client) (1.3.1)
Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore==1.*->httpx>=0.24.1->gradio_client) (0.14.0)
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio_client) (3.15.3)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio_client) (6.0.1)
Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio_client) (2.31.0)
Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.3->gradio_client) (4.66.4)
Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio->httpx>=0.24.1->gradio_client) (1.2.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.19.3->gradio_client) (3.3.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub>=0.19.3->gradio_client) (2.0.7)
`,gn,at,Tn,st,ps=`Loaded as API: https://dmaniloff-meeting-transcript-tool.hf.space ✔
Certainly! Below is an organized version of a hypothetical meeting transcript. Since the original transcript you've provided is quite minimal, I'll create a more detailed and structured example featuring a meeting summary.

---

# Meeting Transcript: Project Alpha Kickoff

**Date:** April 7, 2023

**Location:** Conference Room B, TechCorp Headquarters


**Attendees:**

- John Smith (Project Manager)

- Emily Johnson (Lead Developer)

- Michael Brown (Marketing Lead)

- Lisa Green (Design Lead)


**Meeting Duration:** 1 hour 30 minutes


## Opening Remarks

**John Smith:**

Good morning everyone, and thank you for joining this kickoff meeting for Project Alpha. Today, we'll discuss our project vision, milestones, and roles. Let's get started.


## Vision and Goals

**Emily Johnson:**

The main goal of Project Alpha is to
`,Jn,it,cs="Wow! What happened there? Let’s break it down:",Un,ot,ds="<li>We installed the <code>gradio_client</code>, which is a package that is specifically designed to interact with APIs built with Gradio.</li> <li>We instantiated the client by providing the name of the 🤗 Space that we want to query.</li> <li>We called the <code>predict</code> method of the client and passed in a sample audio file to it.</li>",jn,rt,ms="The Gradio client takes care of making the HTTP POST for us, and it also provides functionality like reading the input audio file that our meeting transcript tool will process (via the function <code>handle_file</code>).",In,ut,hs="Again, using this client is a choice, and you can just as well run a <code>curl -X POST https://dmaniloff-meeting-transcript-tool.hf.space/call/predict [...]</code> and pass in all the parameters needed in the request.",vn,I,Bn,pt,Gn,ct,ys="Another cool feature built into Gradio is that even if you build your demo on your local computer (before you move it into a 🤗 Space) you can still share this with anyone in the world by passing in <code>share=True</code> into <code>launch</code> like so:",Cn,dt,Zn,mt,Ms="You might have noticed that in this Google Colab environment that behaviour is enabled by default, and so the previous demos that we created already had a public URL that you can share 🌎. Go back ⬆ and look at the logs for <code>Running on public URL:</code> to find it 🔎!",xn,ht,Wn,yt,ws='<a href="https://www.gradio.app/guides/using-flagging" rel="nofollow">Flagging</a> is a feature built into Gradio that allows the users of your demo to provide feedback. You might have noticed that the first demo we created had a <code>Flag</code> button at the bottom.',kn,Mt,bs="Under the default options, if a user clicks that button then the input and output samples are saved into a CSV log file that you can review later. If the demo involves audio (like in our case), these are saved separately in a parallel directory and the paths to these files are saved in the CSV file.",$n,wt,fs="Go back and play with our first demo once more, and then click the <code>Flag</code> button. You will see that a new log file is created in the <code>flagged</code> directory:",Hn,bt,Rn,ft,gs=`name,intensity,output,flag,username,timestamp
Diego,4,"Hello, Diego!!!!",,,2024-06-29 22:07:50.242707
`,Vn,gt,Ts="In this case I set inputs to <code>name=diego</code> and <code>intensity=29</code>, which I then flagged. You can see that the log file includes the inputs to the function, the output <code>&quot;Hello, diego!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&quot;</code>, and also a timestamp.",_n,Tt,Js="While a list of inputs and outputs that your users found problematic is better than nothing, Gradio’s flagging feature allows you to do much more. For example, you can provide a <code>flagging_options</code> parameter that lets you customize the kind of feedback or errors that you can receive, such as <code>[&quot;Incorrect&quot;, &quot;Ambiguous&quot;]</code>. Note that this requires that <code>allow_flagging</code> is set to <code>&quot;manual&quot;</code>:",Xn,Jt,Sn,Ut,Us="Setting queue=True in a Colab notebook requires sharing enabled. Setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n\nColab notebook detected. To show errors in colab notebook, set debug=True in launch()\nRunning on public URL: https://46de561b83f8c0ce73.gradio.live\n\nThis share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n",Yn,jt,js="Go ahead and try it out 👆! You can see that the flagging buttons now are <code>Flag as Incorrect</code> and <code>Flag as Ambiguous</code>, and the new log file will reflect those options:",Fn,It,zn,vt,Is=`name,intensity,output,flag,username,timestamp
Diego,4,"Hello, Diego!!!!",,,2024-06-29 22:07:50.242707
Diego,5,"Hello, Diego!!!!!",Ambiguous,,2024-06-29 22:08:04.281030
`,Qn,Bt,Ln,Gt,vs="In this notebook we learned how to demo any machine learning model using Gradio.",Nn,Ct,Bs="First, we learned the basics of setting up an interface for a simple Python function; and second, we covered Gradio’s true strength: building demos for machine learning models.",qn,Zt,Gs="For this, we learned how easy it is to leverage models in the 🤗 Hub via the <code>transformers</code> library and its <code>pipeline</code> function, and how to use multimedia inputs like <code>gr.Audio</code>.",En,xt,Cs="Third, we covered how to host your Gradio demo on 🤗 Spaces, which lets you keep your demo running in the cloud and gives you flexibility in terms of the compute requirements for your demo.",An,Wt,Zs="Finally, we showcased a few of the super cool batteries included that come with Gradio such as API access, public URLs, and Flagging.",Pn,kt,xs="For next steps, check out the <code>Further Reading</code> links at the end of each section.",Dn,$t,Kn,Ht,Ws='<li><a href="https://www.gradio.app/guides/quickstart#building-your-first-demo" rel="nofollow">Your first demo with gradio</a></li> <li><a href="https://www.gradio.app/docs/gradio/introduction#components" rel="nofollow">Gradio Components</a></li> <li><a href="https://huggingface.co/docs/transformers/en/index" rel="nofollow">The transformers library</a></li> <li><a href="https://huggingface.co/docs/transformers/en/main_classes/pipelines" rel="nofollow">The pipeline function</a></li> <li><a href="https://huggingface.co/docs/huggingface_hub/en/package_reference/login" rel="nofollow">Hub Python Library</a></li> <li><a href="https://huggingface.co/docs/api-inference/index" rel="nofollow">Serverless Inference API</a></li> <li><a href="https://huggingface.co/spaces" rel="nofollow">🤗 Spaces</a></li> <li><a href="https://huggingface.co/docs/hub/spaces" rel="nofollow">Spaces documentation</a></li>',On,Rt,ea,Ft,ta;return G=new Ys({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/cookbook/blob/fixed-small-typo/notebooks/en/enterprise_cookbook_gradio.ipynb"}]}}),C=new b({props:{title:"Creating Demos with Spaces and Gradio",local:"creating-demos-with-spaces-and-gradio",headingTag:"h1"}}),x=new b({props:{title:"Introduction",local:"introduction",headingTag:"h2"}}),R=new b({props:{title:"Setup",local:"setup",headingTag:"h2"}}),_=new M({props:{code:"IXBpcCUyMC1xJTIwaW5zdGFsbCUyMGdyYWRpbyUzRCUzRDQuMzYuMSUwQSFwaXAlMjAtcSUyMGluc3RhbGwlMjB0cmFuc2Zvcm1lcnMlM0QlM0Q0LjQxLjI=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>!pip -q install gradio==<span class="hljs-number">4.36</span><span class="hljs-number">.1</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>!pip -q install transformers==<span class="hljs-number">4.41</span><span class="hljs-number">.2</span>`,wrap:!1}}),S=new M({props:{code:"JTIzJTIwdGhlJTIwdXN1YWwlMjBzaG9ydGhhbmQlMjBpcyUyMHRvJTIwaW1wb3J0JTIwZ3JhZGlvJTIwYXMlMjBnciUwQWltcG9ydCUyMGdyYWRpbyUyMGFzJTIwZ3I=",highlighted:`<span class="hljs-comment"># the usual shorthand is to import gradio as gr</span>
<span class="hljs-keyword">import</span> gradio <span class="hljs-keyword">as</span> gr`,wrap:!1}}),Y=new b({props:{title:"Your first demo: the basics of Gradio",local:"your-first-demo-the-basics-of-gradio",headingTag:"h2"}}),Q=new M({props:{code:"ZGVmJTIwZ3JlZXQobmFtZSUzQSUyMHN0ciUyQyUyMGludGVuc2l0eSUzQSUyMGludCklMjAtJTNFJTIwc3RyJTNBJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwJTIySGVsbG8lMkMlMjAlMjIlMjAlMkIlMjBuYW1lJTIwJTJCJTIwJTIyISUyMiUyMColMjBpbnQoaW50ZW5zaXR5KQ==",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">greet</span>(<span class="hljs-params">name: <span class="hljs-built_in">str</span>, intensity: <span class="hljs-built_in">int</span></span>) -&gt; <span class="hljs-built_in">str</span>:
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Hello, &quot;</span> + name + <span class="hljs-string">&quot;!&quot;</span> * <span class="hljs-built_in">int</span>(intensity)`,wrap:!1}}),N=new M({props:{code:"cHJpbnQoZ3JlZXQoJTIyRGllZ28lMjIlMkMlMjAzKSk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(greet(<span class="hljs-string">&quot;Diego&quot;</span>, <span class="hljs-number">3</span>))',wrap:!1}}),A=new M({props:{code:"ZGVtbyUyMCUzRCUyMGdyLkludGVyZmFjZSglMEElMjAlMjAlMjAlMjBmbiUzRGdyZWV0JTJDJTBBJTIwJTIwJTIwJTIwaW5wdXRzJTNEJTVCJTIydGV4dCUyMiUyQyUyMCUyMnNsaWRlciUyMiU1RCUyQyUyMCUyMCUyMyUyMHRoZSUyMGlucHV0cyUyMGFyZSUyMGElMjB0ZXh0JTIwYm94JTIwYW5kJTIwYSUyMHNsaWRlciUyMCglMjJ0ZXh0JTIyJTIwYW5kJTIwJTIyc2xpZGVyJTIyJTIwYXJlJTIwY29tcG9uZW50cyUyMGluJTIwR3JhZGlvKSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlM0QlNUIlMjJ0ZXh0JTIyJTVEJTJDJTIwJTIwJTIzJTIwdGhlJTIwb3V0cHV0JTIwaXMlMjBhJTIwdGV4dCUyMGJveCUwQSk=",highlighted:`demo = gr.Interface(
    fn=greet,
    inputs=[<span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;slider&quot;</span>],  <span class="hljs-comment"># the inputs are a text box and a slider (&quot;text&quot; and &quot;slider&quot; are components in Gradio)</span>
    outputs=[<span class="hljs-string">&quot;text&quot;</span>],  <span class="hljs-comment"># the output is a text box</span>
)`,wrap:!1}}),K=new M({props:{code:"JTIzJTIwdGhlJTIwbGF1bmNoJTIwbWV0aG9kJTIwd2lsbCUyMGZpcmUlMjB1cCUyMHRoZSUyMGludGVyZmFjZSUyMHdlJTIwanVzdCUyMGNyZWF0ZWQlMEFkZW1vLmxhdW5jaCgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the launch method will fire up the interface we just created</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>demo.launch()`,wrap:!1}}),ee=new b({props:{title:"Let’s make it interesting: a meeting transcription tool",local:"lets-make-it-interesting-a-meeting-transcription-tool",headingTag:"h2"}}),se=new b({props:{title:"Audio-to-text",local:"audio-to-text",headingTag:"h3"}}),ue=new M({props:{code:"aW1wb3J0JTIwb3MlMEFpbXBvcnQlMjB0ZW1wZmlsZSUwQSUwQWltcG9ydCUyMHRvcmNoJTBBaW1wb3J0JTIwZ3JhZGlvJTIwYXMlMjBnciUwQWZyb20lMjB0cmFuc2Zvcm1lcnMlMjBpbXBvcnQlMjBwaXBlbGluZSUwQSUwQWRldmljZSUyMCUzRCUyMDAlMjBpZiUyMHRvcmNoLmN1ZGEuaXNfYXZhaWxhYmxlKCklMjBlbHNlJTIwJTIyY3B1JTIyJTBBJTBBQVVESU9fTU9ERUxfTkFNRSUyMCUzRCUyMCglMEElMjAlMjAlMjAlMjAlMjJkaXN0aWwtd2hpc3BlciUyRmRpc3RpbC1sYXJnZS12MyUyMiUyMCUyMCUyMyUyMGZhc3RlciUyMGFuZCUyMHZlcnklMjBjbG9zZSUyMGluJTIwcGVyZm9ybWFuY2UlMjB0byUyMHRoZSUyMGZ1bGwtc2l6ZSUyMCUyMm9wZW5haSUyRndoaXNwZXItbGFyZ2UtdjMlMjIlMEEpJTBBQkFUQ0hfU0laRSUyMCUzRCUyMDglMEElMEElMEFwaXBlJTIwJTNEJTIwcGlwZWxpbmUoJTBBJTIwJTIwJTIwJTIwdGFzayUzRCUyMmF1dG9tYXRpYy1zcGVlY2gtcmVjb2duaXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBtb2RlbCUzREFVRElPX01PREVMX05BTUUlMkMlMEElMjAlMjAlMjAlMjBjaHVua19sZW5ndGhfcyUzRDMwJTJDJTBBJTIwJTIwJTIwJTIwZGV2aWNlJTNEZGV2aWNlJTJDJTBBKSUwQSUwQSUwQWRlZiUyMHRyYW5zY3JpYmUoYXVkaW9faW5wdXQpJTNBJTBBJTIwJTIwJTIwJTIwJTIyJTIyJTIyRnVuY3Rpb24lMjB0byUyMGNvbnZlcnQlMjBhdWRpbyUyMHRvJTIwdGV4dC4lMjIlMjIlMjIlMEElMjAlMjAlMjAlMjBpZiUyMGF1ZGlvX2lucHV0JTIwaXMlMjBOb25lJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmFpc2UlMjBnci5FcnJvciglMjJObyUyMGF1ZGlvJTIwZmlsZSUyMHN1Ym1pdHRlZCElMjIpJTBBJTBBJTIwJTIwJTIwJTIwb3V0cHV0JTIwJTNEJTIwcGlwZShhdWRpb19pbnB1dCUyQyUyMGJhdGNoX3NpemUlM0RCQVRDSF9TSVpFJTJDJTIwZ2VuZXJhdGVfa3dhcmdzJTNEJTdCJTIydGFzayUyMiUzQSUyMCUyMnRyYW5zY3JpYmUlMjIlN0QlMkMlMjByZXR1cm5fdGltZXN0YW1wcyUzRFRydWUpJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwb3V0cHV0JTVCJTIydGV4dCUyMiU1RA==",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">import</span> tempfile

<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> gradio <span class="hljs-keyword">as</span> gr
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

device = <span class="hljs-number">0</span> <span class="hljs-keyword">if</span> torch.cuda.is_available() <span class="hljs-keyword">else</span> <span class="hljs-string">&quot;cpu&quot;</span>

AUDIO_MODEL_NAME = (
    <span class="hljs-string">&quot;distil-whisper/distil-large-v3&quot;</span>  <span class="hljs-comment"># faster and very close in performance to the full-size &quot;openai/whisper-large-v3&quot;</span>
)
BATCH_SIZE = <span class="hljs-number">8</span>


pipe = pipeline(
    task=<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>,
    model=AUDIO_MODEL_NAME,
    chunk_length_s=<span class="hljs-number">30</span>,
    device=device,
)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">transcribe</span>(<span class="hljs-params">audio_input</span>):
    <span class="hljs-string">&quot;&quot;&quot;Function to convert audio to text.&quot;&quot;&quot;</span>
    <span class="hljs-keyword">if</span> audio_input <span class="hljs-keyword">is</span> <span class="hljs-literal">None</span>:
        <span class="hljs-keyword">raise</span> gr.Error(<span class="hljs-string">&quot;No audio file submitted!&quot;</span>)

    output = pipe(audio_input, batch_size=BATCH_SIZE, generate_kwargs={<span class="hljs-string">&quot;task&quot;</span>: <span class="hljs-string">&quot;transcribe&quot;</span>}, return_timestamps=<span class="hljs-literal">True</span>)
    <span class="hljs-keyword">return</span> output[<span class="hljs-string">&quot;text&quot;</span>]`,wrap:!1}}),ce=new M({props:{code:"cGFydF8xX2RlbW8lMjAlM0QlMjBnci5JbnRlcmZhY2UoJTBBJTIwJTIwJTIwJTIwZm4lM0R0cmFuc2NyaWJlJTJDJTBBJTIwJTIwJTIwJTIwaW5wdXRzJTNEZ3IuQXVkaW8odHlwZSUzRCUyMmZpbGVwYXRoJTIyKSUyQyUyMCUyMCUyMyUyMCUyMmZpbGVwYXRoJTIyJTIwcGFzc2VzJTIwYSUyMHN0ciUyMHBhdGglMjB0byUyMGElMjB0ZW1wb3JhcnklMjBmaWxlJTIwY29udGFpbmluZyUyMHRoZSUyMGF1ZGlvJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUzRGdyLlRleHRib3goc2hvd19jb3B5X2J1dHRvbiUzRFRydWUpJTJDJTIwJTIwJTIzJTIwZ2l2ZSUyMHVzZXJzJTIwdGhlJTIwb3B0aW9uJTIwdG8lMjBjb3B5JTIwdGhlJTIwcmVzdWx0cyUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIyVHJhbnNjcmliZSUyMEF1ZGlvJTIwdG8lMjBUZXh0JTIyJTJDJTIwJTIwJTIzJTIwZ2l2ZSUyMG91ciUyMGRlbW8lMjBhJTIwdGl0bGUlMjAlM0EpJTBBKSUwQSUwQXBhcnRfMV9kZW1vLmxhdW5jaCgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>part_1_demo = gr.Interface(
<span class="hljs-meta">... </span>    fn=transcribe,
<span class="hljs-meta">... </span>    inputs=gr.Audio(<span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;filepath&quot;</span>),  <span class="hljs-comment"># &quot;filepath&quot; passes a str path to a temporary file containing the audio</span>
<span class="hljs-meta">... </span>    outputs=gr.Textbox(show_copy_button=<span class="hljs-literal">True</span>),  <span class="hljs-comment"># give users the option to copy the results</span>
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;Transcribe Audio to Text&quot;</span>,  <span class="hljs-comment"># give our demo a title :)</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>part_1_demo.launch()`,wrap:!1}}),T=new $s({props:{warning:!1,$$slots:{default:[zs]},$$scope:{ctx:Xt}}}),ye=new b({props:{title:"Organize & summarize text",local:"organize--summarize-text",headingTag:"h3"}}),Te=new M({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG5vdGVib29rX2xvZ2luJTJDJTIwSW5mZXJlbmNlQ2xpZW50JTBBJTBBJTIzJTIwcnVubmluZyUyMHRoaXMlMjB3aWxsJTIwcHJvbXB0JTIweW91JTIwdG8lMjBlbnRlciUyMHlvdXIlMjBIdWdnaW5nJTIwRmFjZSUyMGNyZWRlbnRpYWxzJTBBbm90ZWJvb2tfbG9naW4oKQ==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> notebook_login, InferenceClient

<span class="hljs-comment"># running this will prompt you to enter your Hugging Face credentials</span>
notebook_login()`,wrap:!1}}),Ie=new M({props:{code:" ",highlighted:`<span class="hljs-comment"># sample meeting transcript from huuuyeah/MeetingBank_Audio</span>
<span class="hljs-comment"># this is just a copy-paste from the output of part 1 using one of the Denver meetings</span>
sample_transcript = <span class="hljs-string">&quot;&quot;&quot;
 Good evening. Welcome to the Denver City Council meeting of Monday, May 8, 2017. My name is Kelly Velez. I&#x27;m your Council Secretary. According to our rules of procedure, when our Council President, Albus Brooks, and Council President Pro Tem, JoLynn Clark, are both absent, the Council Secretary calls the meeting to order. Please rise and join Councilman Herndon in the Pledge of Allegiance. Madam Secretary, roll call. Roll call. Here. Mark. Espinosa. Here. Platt. Delmar. Here. Here. Here. Here. We have five members present. There is not a quorum this evening. Many of the council members are participating in an urban exploration trip in Portland, Oregon, pursuant to Section 3.3.4 of the city charter. Because there is not a quorum of seven council members present, all of tonight&#x27;s business will move to next week, to Monday, May 15th. Seeing no other business before this body except to wish Councilwoman Keniche a very happy birthday this meeting is adjourned Thank you. A standard model and an energy efficient model likely will be returned to you in energy savings many times during its lifespan. Now, what size do you need? Air conditioners are not a one-size-or-type fits all. Before you buy an air conditioner, you need to consider the size of your home and the cost to operate the unit per hour. Do you want a room air conditioner, which costs less but cools a smaller area, or do you want a central air conditioner, which cools your entire house but costs more? Do your homework. Now, let&#x27;s discuss evaporative coolers. In low humidity areas, evaporating water into the air provides a natural and energy efficient means of cooling. Evaporative coolers, also called swamp coolers, cool outdoor air by passing it over water saturated pads, causing the water to evaporate into it. Evaporative coolers cost about one half as much to install as central air conditioners and use about one-quarter as much energy. However, they require more frequent maintenance than refrigerated air conditioners, and they&#x27;re suitable only for areas with low humidity. Watch the maintenance tips at the end of this segment to learn more. And finally, fans. When air moves around in your home, it creates a wind chill effect. A mere two-mile-an-hour breeze will make your home feel four degrees cooler and therefore you can set your thermostat a bit higher. Ceiling fans and portable oscillating fans are cheap to run and they make your house feel cooler. You can also install a whole house fan to draw the hot air out of your home. A whole house fan draws cool outdoor air inside through open windows and exhausts hot room air through the attic to the outside. The result is excellent ventilation, lower indoor temperatures, and improved evaporative cooling. But remember, there are many low-cost, no-cost ways that you can keep your home cool. You should focus on these long before you turn on your AC or even before you purchase an AC. But if you are going to purchase a new cooling system, remember to get one that&#x27;s energy efficient and the correct size for your home. Wait, wait, don&#x27;t go away, there&#x27;s more. After this segment of the presentation is over, you&#x27;re going to be given the option to view maintenance tips about air conditioners and evaporative coolers. Now all of these tips are brought to you by the people at Xcel Energy. Thanks for watching.
&quot;&quot;&quot;</span>`,wrap:!1}}),ve=new M({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQSUwQVRFWFRfTU9ERUxfTkFNRSUyMCUzRCUyMCUyMm1pY3Jvc29mdCUyRlBoaS0zLW1pbmktNGstaW5zdHJ1Y3QlMjIlMEElMEFjbGllbnQlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnQoKSUwQSUwQSUwQWRlZiUyMG9yZ2FuaXplX3RleHQobWVldGluZ190cmFuc2NyaXB0KSUzQSUwQSUyMCUyMCUyMCUyMG1lc3NhZ2VzJTIwJTNEJTIwYnVpbGRfbWVzc2FnZXMobWVldGluZ190cmFuc2NyaXB0KSUwQSUyMCUyMCUyMCUyMHJlc3BvbnNlJTIwJTNEJTIwY2xpZW50LmNoYXRfY29tcGxldGlvbihtZXNzYWdlcyUyQyUyMG1vZGVsJTNEVEVYVF9NT0RFTF9OQU1FJTJDJTIwbWF4X3Rva2VucyUzRDI1MCUyQyUyMHNlZWQlM0Q0MzApJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwcmVzcG9uc2UuY2hvaWNlcyU1QjAlNUQubWVzc2FnZS5jb250ZW50JTBBJTBBJTBBZGVmJTIwYnVpbGRfbWVzc2FnZXMobWVldGluZ190cmFuc2NyaXB0KSUyMC0lM0UlMjBsaXN0JTNBJTBBJTIwJTIwJTIwJTIwc3lzdGVtX2lucHV0JTIwJTNEJTIwJTIyWW91JTIwYXJlJTIwYW4lMjBhc3NpdGFudCUyMHRoYXQlMjBvcmdhbml6ZXMlMjBtZWV0aW5nJTIwbWludXRlcy4lMjIlMEElMjAlMjAlMjAlMjB1c2VyX2lucHV0JTIwJTNEJTIwJTIyJTIyJTIyVGFrZSUyMHRoaXMlMjByYXclMjBtZWV0aW5nJTIwdHJhbnNjcmlwdCUyMGFuZCUyMHJldHVybiUyMGFuJTIwb3JnYW5pemVkJTIwdmVyc2lvbi4lMEElMjAlMjAlMjAlMjBIZXJlJTIwaXMlMjB0aGUlMjB0cmFuc2NyaXB0JTNBJTBBJTIwJTIwJTIwJTIwJTdCbWVldGluZ190cmFuc2NyaXB0JTdEJTBBJTIwJTIwJTIwJTIwJTIyJTIyJTIyLmZvcm1hdCglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBtZWV0aW5nX3RyYW5zY3JpcHQlM0RtZWV0aW5nX3RyYW5zY3JpcHQlMEElMjAlMjAlMjAlMjApJTBBJTBBJTIwJTIwJTIwJTIwbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIyc3lzdGVtJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMHN5c3RlbV9pbnB1dCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMHVzZXJfaW5wdXQlN0QlMkMlMEElMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBtZXNzYWdlcw==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient

TEXT_MODEL_NAME = <span class="hljs-string">&quot;microsoft/Phi-3-mini-4k-instruct&quot;</span>

client = InferenceClient()


<span class="hljs-keyword">def</span> <span class="hljs-title function_">organize_text</span>(<span class="hljs-params">meeting_transcript</span>):
    messages = build_messages(meeting_transcript)
    response = client.chat_completion(messages, model=TEXT_MODEL_NAME, max_tokens=<span class="hljs-number">250</span>, seed=<span class="hljs-number">430</span>)
    <span class="hljs-keyword">return</span> response.choices[<span class="hljs-number">0</span>].message.content


<span class="hljs-keyword">def</span> <span class="hljs-title function_">build_messages</span>(<span class="hljs-params">meeting_transcript</span>) -&gt; <span class="hljs-built_in">list</span>:
    system_input = <span class="hljs-string">&quot;You are an assitant that organizes meeting minutes.&quot;</span>
    user_input = <span class="hljs-string">&quot;&quot;&quot;Take this raw meeting transcript and return an organized version.
    Here is the transcript:
    {meeting_transcript}
    &quot;&quot;&quot;</span>.<span class="hljs-built_in">format</span>(
        meeting_transcript=meeting_transcript
    )

    messages = [
        {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;system&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: system_input},
        {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: user_input},
    ]
    <span class="hljs-keyword">return</span> messages`,wrap:!1}}),Ge=new M({props:{code:"cGFydF8yX2RlbW8lMjAlM0QlMjBnci5JbnRlcmZhY2UoJTBBJTIwJTIwJTIwJTIwZm4lM0Rvcmdhbml6ZV90ZXh0JTJDJTBBJTIwJTIwJTIwJTIwaW5wdXRzJTNEZ3IuVGV4dGJveCh2YWx1ZSUzRHNhbXBsZV90cmFuc2NyaXB0KSUyQyUwQSUyMCUyMCUyMCUyMG91dHB1dHMlM0Rnci5UZXh0Ym94KHNob3dfY29weV9idXR0b24lM0RUcnVlKSUyQyUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIyQ2xlYW4lMjBVcCUyMFRyYW5zY3JpcHQlMjBUZXh0JTIyJTJDJTBBKSUwQXBhcnRfMl9kZW1vLmxhdW5jaCgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>part_2_demo = gr.Interface(
<span class="hljs-meta">... </span>    fn=organize_text,
<span class="hljs-meta">... </span>    inputs=gr.Textbox(value=sample_transcript),
<span class="hljs-meta">... </span>    outputs=gr.Textbox(show_copy_button=<span class="hljs-literal">True</span>),
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;Clean Up Transcript Text&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>part_2_demo.launch()`,wrap:!1}}),We=new b({props:{title:"Putting it all together",local:"putting-it-all-together",headingTag:"h3"}}),Re=new M({props:{code:"ZGVmJTIwbWVldGluZ190cmFuc2NyaXB0X3Rvb2woYXVkaW9faW5wdXQpJTNBJTBBJTIwJTIwJTIwJTIwbWVldGluZ190ZXh0JTIwJTNEJTIwdHJhbnNjcmliZShhdWRpb19pbnB1dCklMEElMjAlMjAlMjAlMjBvcmdhbml6ZWRfdGV4dCUyMCUzRCUyMG9yZ2FuaXplX3RleHQobWVldGluZ190ZXh0KSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMG9yZ2FuaXplZF90ZXh0JTBBJTBBJTBBZnVsbF9kZW1vJTIwJTNEJTIwZ3IuSW50ZXJmYWNlKCUwQSUyMCUyMCUyMCUyMGZuJTNEbWVldGluZ190cmFuc2NyaXB0X3Rvb2wlMkMlMEElMjAlMjAlMjAlMjBpbnB1dHMlM0Rnci5BdWRpbyh0eXBlJTNEJTIyZmlsZXBhdGglMjIpJTJDJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUzRGdyLlRleHRib3goc2hvd19jb3B5X2J1dHRvbiUzRFRydWUpJTJDJTBBJTIwJTIwJTIwJTIwdGl0bGUlM0QlMjJUaGUlMjBDb21wbGV0ZSUyME1lZXRpbmclMjBUcmFuc2NyaXB0aW9uJTIwVG9vbCUyMiUyQyUwQSklMEFmdWxsX2RlbW8ubGF1bmNoKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">meeting_transcript_tool</span>(<span class="hljs-params">audio_input</span>):
<span class="hljs-meta">... </span>    meeting_text = transcribe(audio_input)
<span class="hljs-meta">... </span>    organized_text = organize_text(meeting_text)
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> organized_text


<span class="hljs-meta">&gt;&gt;&gt; </span>full_demo = gr.Interface(
<span class="hljs-meta">... </span>    fn=meeting_transcript_tool,
<span class="hljs-meta">... </span>    inputs=gr.Audio(<span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;filepath&quot;</span>),
<span class="hljs-meta">... </span>    outputs=gr.Textbox(show_copy_button=<span class="hljs-literal">True</span>),
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;The Complete Meeting Transcription Tool&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>full_demo.launch()`,wrap:!1}}),Xe=new b({props:{title:"Move your demo into 🤗 Spaces",local:"move-your-demo-into--spaces",headingTag:"h2"}}),Ne=new M({props:{code:"JTIzJTIwb3V0bGluZSUyMG9mJTIwYXBwLnB5JTNBJTBBJTBBZGVmJTIwbWVldGluZ190cmFuc2NyaXB0X3Rvb2woLi4uKSUzQSUwQSUyMCUyMCUyMC4uLiUwQSUwQWRlZiUyMHRyYW5zY3JpYmUoLi4uKSUzQSUwQSUyMCUyMCUyMC4uLiUwQSUwQWRlZiUyMG9yZ2FuaXplX3RleHQoLi4uKSUzQSUwQSUyMCUyMCUyMC4uLiUwQQ==",highlighted:`<span class="hljs-comment"># outline of app.py:</span>

<span class="hljs-keyword">def</span> <span class="hljs-title function_">meeting_transcript_tool</span>(<span class="hljs-params">...</span>):
   ...

<span class="hljs-keyword">def</span> <span class="hljs-title function_">transcribe</span>(<span class="hljs-params">...</span>):
   ...

<span class="hljs-keyword">def</span> <span class="hljs-title function_">organize_text</span>(<span class="hljs-params">...</span>):
   ...
`,wrap:!1}}),Ee=new M({props:{code:"JTIzJTIwY29udGVudHMlMjBvZiUyMHJlcXVpcmVtZW50cy50eHQlM0ElMEF0b3JjaCUwQXRyYW5zZm9ybWVycw==",highlighted:`<span class="hljs-comment"># contents of requirements.txt:</span>
<span class="hljs-attribute">torch</span>
transformers`,wrap:!1}}),Ae=new b({props:{title:"Gradio comes with batteries included 🔋",local:"gradio-comes-with-batteries-included-",headingTag:"h2"}}),Ke=new b({props:{title:"Access as an API",local:"access-as-an-api",headingTag:"h3"}}),lt=new M({props:{code:"IXBpcCUyMGluc3RhbGwlMjBncmFkaW9fY2xpZW50",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>!pip install gradio_client',wrap:!1}}),at=new M({props:{code:"ZnJvbSUyMGdyYWRpb19jbGllbnQlMjBpbXBvcnQlMjBDbGllbnQlMkMlMjBoYW5kbGVfZmlsZSUwQSUwQWNsaWVudCUyMCUzRCUyMENsaWVudCglMjJkbWFuaWxvZmYlMkZtZWV0aW5nLXRyYW5zY3JpcHQtdG9vbCUyMiklMEFyZXN1bHQlMjAlM0QlMjBjbGllbnQucHJlZGljdCglMEElMjAlMjAlMjAlMjBhdWRpb19pbnB1dCUzRGhhbmRsZV9maWxlKCUyMmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmdyYWRpby1hcHAlMkZncmFkaW8lMkZyYXclMkZtYWluJTJGdGVzdCUyRnRlc3RfZmlsZXMlMkZhdWRpb19zYW1wbGUud2F2JTIyKSUyQyUwQSUyMCUyMCUyMCUyMGFwaV9uYW1lJTNEJTIyJTJGcHJlZGljdCUyMiUyQyUwQSklMEFwcmludChyZXN1bHQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> gradio_client <span class="hljs-keyword">import</span> Client, handle_file

<span class="hljs-meta">&gt;&gt;&gt; </span>client = Client(<span class="hljs-string">&quot;dmaniloff/meeting-transcript-tool&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>result = client.predict(
<span class="hljs-meta">... </span>    audio_input=handle_file(<span class="hljs-string">&quot;https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav&quot;</span>),
<span class="hljs-meta">... </span>    api_name=<span class="hljs-string">&quot;/predict&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(result)`,wrap:!1}}),I=new $s({props:{warning:!1,$$slots:{default:[Qs]},$$scope:{ctx:Xt}}}),pt=new b({props:{title:"Share via public URL",local:"share-via-public-url",headingTag:"h3"}}),dt=new M({props:{code:"JTIwZGVtby5sYXVuY2goc2hhcmUlM0RUcnVlKQ==",highlighted:' demo.launch(share=<span class="hljs-literal">True</span>)',wrap:!1}}),ht=new b({props:{title:"Flagging",local:"flagging",headingTag:"h3"}}),bt=new M({props:{code:"IWNhdCUyMGZsYWdnZWQlMkZsb2cuY3N2",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>!cat flagged/log.csv',wrap:!1}}),Jt=new M({props:{code:"ZGVtb193aXRoX2N1c3RvbV9mbGFnZ2luZyUyMCUzRCUyMGdyLkludGVyZmFjZSglMEElMjAlMjAlMjAlMjBmbiUzRGdyZWV0JTJDJTBBJTIwJTIwJTIwJTIwaW5wdXRzJTNEJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydGV4dCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnNsaWRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCU1RCUyQyUyMCUyMCUyMyUyMHRoZSUyMGlucHV0cyUyMGFyZSUyMGElMjB0ZXh0JTIwYm94JTIwYW5kJTIwYSUyMHNsaWRlciUyMCglMjJ0ZXh0JTIyJTIwYW5kJTIwJTIyc2xpZGVyJTIyJTIwYXJlJTIwY29tcG9uZW50cyUyMGluJTIwR3JhZGlvKSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlM0QlNUIlMjJ0ZXh0JTIyJTVEJTJDJTIwJTIwJTIzJTIwdGhlJTIwb3V0cHV0JTIwaXMlMjBhJTIwdGV4dCUyMGJveCUwQSUyMCUyMCUyMCUyMGFsbG93X2ZsYWdnaW5nJTNEJTIybWFudWFsJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmxhZ2dpbmdfb3B0aW9ucyUzRCU1QiUyMkluY29ycmVjdCUyMiUyQyUyMCUyMkFtYmlndW91cyUyMiU1RCUyQyUwQSklMEFkZW1vX3dpdGhfY3VzdG9tX2ZsYWdnaW5nLmxhdW5jaCgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>demo_with_custom_flagging = gr.Interface(
<span class="hljs-meta">... </span>    fn=greet,
<span class="hljs-meta">... </span>    inputs=[
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;text&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;slider&quot;</span>,
<span class="hljs-meta">... </span>    ],  <span class="hljs-comment"># the inputs are a text box and a slider (&quot;text&quot; and &quot;slider&quot; are components in Gradio)</span>
<span class="hljs-meta">... </span>    outputs=[<span class="hljs-string">&quot;text&quot;</span>],  <span class="hljs-comment"># the output is a text box</span>
<span class="hljs-meta">... </span>    allow_flagging=<span class="hljs-string">&quot;manual&quot;</span>,
<span class="hljs-meta">... </span>    flagging_options=[<span class="hljs-string">&quot;Incorrect&quot;</span>, <span class="hljs-string">&quot;Ambiguous&quot;</span>],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>demo_with_custom_flagging.launch()`,wrap:!1}}),It=new M({props:{code:"IWNhdCUyMGZsYWdnZWQlMkZsb2cuY3N2",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>!cat flagged/log.csv',wrap:!1}}),Bt=new b({props:{title:"Wrap up & Next Steps",local:"wrap-up--next-steps",headingTag:"h2"}}),$t=new b({props:{title:"⏭️ Further reading",local:"-further-reading",headingTag:"h2"}}),Rt=new Fs({props:{source:"https://github.com/huggingface/cookbook/blob/main/notebooks/en/enterprise_cookbook_gradio.md"}}),{c(){y=i("meta"),f=a(),w=i("p"),g=a(),u(G.$$.fragment),Qt=a(),u(C.$$.fragment),Lt=a(),Z=i("p"),Z.innerHTML=ia,Nt=a(),u(x.$$.fragment),qt=a(),W=i("p"),W.innerHTML=oa,Et=a(),k=i("p"),k.textContent=ra,At=a(),$=i("ul"),$.innerHTML=ua,Pt=a(),H=i("p"),H.innerHTML=pa,Dt=a(),u(R.$$.fragment),Kt=a(),V=i("p"),V.innerHTML=ca,Ot=a(),u(_.$$.fragment),el=a(),X=i("pre"),X.textContent=da,tl=a(),u(S.$$.fragment),ll=a(),u(Y.$$.fragment),nl=a(),F=i("p"),F.textContent=ma,al=a(),z=i("p"),z.innerHTML=ha,sl=a(),u(Q.$$.fragment),il=a(),L=i("p"),L.textContent=ya,ol=a(),u(N.$$.fragment),rl=a(),q=i("pre"),q.textContent=Ma,ul=a(),E=i("p"),E.innerHTML=wa,pl=a(),u(A.$$.fragment),cl=a(),P=i("p"),P.innerHTML=ba,dl=a(),D=i("p"),D.innerHTML=fa,ml=a(),u(K.$$.fragment),hl=a(),O=i("pre"),O.textContent=ga,yl=a(),u(ee.$$.fragment),Ml=a(),te=i("p"),te.textContent=Ta,wl=a(),le=i("p"),le.textContent=Ja,bl=a(),ne=i("p"),ne.textContent=Ua,fl=a(),ae=i("ol"),ae.innerHTML=ja,gl=a(),u(se.$$.fragment),Tl=a(),ie=i("p"),ie.textContent=Ia,Jl=a(),oe=i("p"),oe.innerHTML=va,Ul=a(),re=i("p"),re.innerHTML=Ba,jl=a(),u(ue.$$.fragment),Il=a(),pe=i("p"),pe.innerHTML=Ga,vl=a(),u(ce.$$.fragment),Bl=a(),de=i("pre"),de.textContent=Ca,Gl=a(),me=i("p"),me.innerHTML=Za,Cl=a(),he=i("p"),he.innerHTML=xa,Zl=a(),u(T.$$.fragment),xl=a(),u(ye.$$.fragment),Wl=a(),Me=i("p"),Me.textContent=Wa,kl=a(),we=i("p"),we.innerHTML=ka,$l=a(),be=i("p"),be.innerHTML=$a,Hl=a(),fe=i("p"),fe.innerHTML=Ha,Rl=a(),ge=i("p"),ge.innerHTML=Ra,Vl=a(),u(Te.$$.fragment),_l=a(),Je=i("p"),Je.innerHTML=Va,Xl=a(),Ue=i("p"),Ue.textContent=_a,Sl=a(),je=i("ul"),je.innerHTML=Xa,Yl=a(),u(Ie.$$.fragment),Fl=a(),u(ve.$$.fragment),zl=a(),Be=i("p"),Be.innerHTML=Sa,Ql=a(),u(Ge.$$.fragment),Ll=a(),Ce=i("pre"),Ce.textContent=Ya,Nl=a(),Ze=i("p"),Ze.textContent=Fa,ql=a(),xe=i("p"),xe.innerHTML=za,El=a(),u(We.$$.fragment),Al=a(),ke=i("p"),ke.textContent=Qa,Pl=a(),$e=i("ol"),$e.innerHTML=La,Dl=a(),He=i("p"),He.innerHTML=Na,Kl=a(),u(Re.$$.fragment),Ol=a(),Ve=i("pre"),Ve.textContent=qa,en=a(),_e=i("p"),_e.textContent=Ea,tn=a(),u(Xe.$$.fragment),ln=a(),Se=i("p"),Se.textContent=Aa,nn=a(),Ye=i("p"),Ye.textContent=Pa,an=a(),Fe=i("p"),Fe.innerHTML=Da,sn=a(),J=i("img"),on=a(),ze=i("p"),ze.innerHTML=Oa,rn=a(),Qe=i("p"),Qe.textContent=es,un=a(),U=i("ul"),Le=i("li"),St=i("p"),St.innerHTML=ts,na=a(),u(Ne.$$.fragment),aa=a(),qe=i("li"),Yt=i("p"),Yt.innerHTML=ls,sa=a(),u(Ee.$$.fragment),pn=a(),u(Ae.$$.fragment),cn=a(),Pe=i("p"),Pe.textContent=ns,dn=a(),De=i("ul"),De.innerHTML=as,mn=a(),u(Ke.$$.fragment),hn=a(),Oe=i("p"),Oe.innerHTML=ss,yn=a(),et=i("p"),et.innerHTML=is,Mn=a(),j=i("img"),wn=a(),tt=i("p"),tt.textContent=rs,bn=a(),u(lt.$$.fragment),fn=a(),nt=i("pre"),nt.textContent=us,gn=a(),u(at.$$.fragment),Tn=a(),st=i("pre"),st.textContent=ps,Jn=a(),it=i("p"),it.textContent=cs,Un=a(),ot=i("ul"),ot.innerHTML=ds,jn=a(),rt=i("p"),rt.innerHTML=ms,In=a(),ut=i("p"),ut.innerHTML=hs,vn=a(),u(I.$$.fragment),Bn=a(),u(pt.$$.fragment),Gn=a(),ct=i("p"),ct.innerHTML=ys,Cn=a(),u(dt.$$.fragment),Zn=a(),mt=i("p"),mt.innerHTML=Ms,xn=a(),u(ht.$$.fragment),Wn=a(),yt=i("p"),yt.innerHTML=ws,kn=a(),Mt=i("p"),Mt.textContent=bs,$n=a(),wt=i("p"),wt.innerHTML=fs,Hn=a(),u(bt.$$.fragment),Rn=a(),ft=i("pre"),ft.textContent=gs,Vn=a(),gt=i("p"),gt.innerHTML=Ts,_n=a(),Tt=i("p"),Tt.innerHTML=Js,Xn=a(),u(Jt.$$.fragment),Sn=a(),Ut=i("pre"),Ut.textContent=Us,Yn=a(),jt=i("p"),jt.innerHTML=js,Fn=a(),u(It.$$.fragment),zn=a(),vt=i("pre"),vt.textContent=Is,Qn=a(),u(Bt.$$.fragment),Ln=a(),Gt=i("p"),Gt.textContent=vs,Nn=a(),Ct=i("p"),Ct.textContent=Bs,qn=a(),Zt=i("p"),Zt.innerHTML=Gs,En=a(),xt=i("p"),xt.textContent=Cs,An=a(),Wt=i("p"),Wt.textContent=Zs,Pn=a(),kt=i("p"),kt.innerHTML=xs,Dn=a(),u($t.$$.fragment),Kn=a(),Ht=i("ul"),Ht.innerHTML=Ws,On=a(),u(Rt.$$.fragment),ea=a(),Ft=i("p"),this.h()},l(e){const t=Ss("svelte-u9bgzb",document.head);y=o(t,"META",{name:!0,content:!0}),t.forEach(l),f=s(e),w=o(e,"P",{}),zt(w).forEach(l),g=s(e),p(G.$$.fragment,e),Qt=s(e),p(C.$$.fragment,e),Lt=s(e),Z=o(e,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-jo227l"&&(Z.innerHTML=ia),Nt=s(e),p(x.$$.fragment,e),qt=s(e),W=o(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-tfh72r"&&(W.innerHTML=oa),Et=s(e),k=o(e,"P",{"data-svelte-h":!0}),r(k)!=="svelte-18fq2ds"&&(k.textContent=ra),At=s(e),$=o(e,"UL",{"data-svelte-h":!0}),r($)!=="svelte-yc80xa"&&($.innerHTML=ua),Pt=s(e),H=o(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-dsdcpw"&&(H.innerHTML=pa),Dt=s(e),p(R.$$.fragment,e),Kt=s(e),V=o(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-ndetzi"&&(V.innerHTML=ca),Ot=s(e),p(_.$$.fragment,e),el=s(e),X=o(e,"PRE",{"data-svelte-h":!0}),r(X)!=="svelte-ie80p"&&(X.textContent=da),tl=s(e),p(S.$$.fragment,e),ll=s(e),p(Y.$$.fragment,e),nl=s(e),F=o(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-imykz0"&&(F.textContent=ma),al=s(e),z=o(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-ck34qj"&&(z.innerHTML=ha),sl=s(e),p(Q.$$.fragment,e),il=s(e),L=o(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-i6af0b"&&(L.textContent=ya),ol=s(e),p(N.$$.fragment,e),rl=s(e),q=o(e,"PRE",{"data-svelte-h":!0}),r(q)!=="svelte-1d8bxpj"&&(q.textContent=Ma),ul=s(e),E=o(e,"P",{"data-svelte-h":!0}),r(E)!=="svelte-ao31px"&&(E.innerHTML=wa),pl=s(e),p(A.$$.fragment,e),cl=s(e),P=o(e,"P",{"data-svelte-h":!0}),r(P)!=="svelte-1gssur6"&&(P.innerHTML=ba),dl=s(e),D=o(e,"P",{"data-svelte-h":!0}),r(D)!=="svelte-idgyqj"&&(D.innerHTML=fa),ml=s(e),p(K.$$.fragment,e),hl=s(e),O=o(e,"PRE",{"data-svelte-h":!0}),r(O)!=="svelte-14x4svi"&&(O.textContent=ga),yl=s(e),p(ee.$$.fragment,e),Ml=s(e),te=o(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-17laqx2"&&(te.textContent=Ta),wl=s(e),le=o(e,"P",{"data-svelte-h":!0}),r(le)!=="svelte-1yo8y7n"&&(le.textContent=Ja),bl=s(e),ne=o(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-ekm3wd"&&(ne.textContent=Ua),fl=s(e),ae=o(e,"OL",{"data-svelte-h":!0}),r(ae)!=="svelte-86ps6"&&(ae.innerHTML=ja),gl=s(e),p(se.$$.fragment,e),Tl=s(e),ie=o(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-16t2jma"&&(ie.textContent=Ia),Jl=s(e),oe=o(e,"P",{"data-svelte-h":!0}),r(oe)!=="svelte-oonzuh"&&(oe.innerHTML=va),Ul=s(e),re=o(e,"P",{"data-svelte-h":!0}),r(re)!=="svelte-mzfgq9"&&(re.innerHTML=Ba),jl=s(e),p(ue.$$.fragment,e),Il=s(e),pe=o(e,"P",{"data-svelte-h":!0}),r(pe)!=="svelte-2mbqop"&&(pe.innerHTML=Ga),vl=s(e),p(ce.$$.fragment,e),Bl=s(e),de=o(e,"PRE",{"data-svelte-h":!0}),r(de)!=="svelte-elz2kq"&&(de.textContent=Ca),Gl=s(e),me=o(e,"P",{"data-svelte-h":!0}),r(me)!=="svelte-qv5xew"&&(me.innerHTML=Za),Cl=s(e),he=o(e,"P",{"data-svelte-h":!0}),r(he)!=="svelte-1yvhatv"&&(he.innerHTML=xa),Zl=s(e),p(T.$$.fragment,e),xl=s(e),p(ye.$$.fragment,e),Wl=s(e),Me=o(e,"P",{"data-svelte-h":!0}),r(Me)!=="svelte-1pk54pa"&&(Me.textContent=Wa),kl=s(e),we=o(e,"P",{"data-svelte-h":!0}),r(we)!=="svelte-121gwix"&&(we.innerHTML=ka),$l=s(e),be=o(e,"P",{"data-svelte-h":!0}),r(be)!=="svelte-rn2c0"&&(be.innerHTML=$a),Hl=s(e),fe=o(e,"P",{"data-svelte-h":!0}),r(fe)!=="svelte-1ytrw7h"&&(fe.innerHTML=Ha),Rl=s(e),ge=o(e,"P",{"data-svelte-h":!0}),r(ge)!=="svelte-eig0yh"&&(ge.innerHTML=Ra),Vl=s(e),p(Te.$$.fragment,e),_l=s(e),Je=o(e,"P",{"data-svelte-h":!0}),r(Je)!=="svelte-1nuljlf"&&(Je.innerHTML=Va),Xl=s(e),Ue=o(e,"P",{"data-svelte-h":!0}),r(Ue)!=="svelte-1t4rfuz"&&(Ue.textContent=_a),Sl=s(e),je=o(e,"UL",{"data-svelte-h":!0}),r(je)!=="svelte-590jvf"&&(je.innerHTML=Xa),Yl=s(e),p(Ie.$$.fragment,e),Fl=s(e),p(ve.$$.fragment,e),zl=s(e),Be=o(e,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-1y7r0u"&&(Be.innerHTML=Sa),Ql=s(e),p(Ge.$$.fragment,e),Ll=s(e),Ce=o(e,"PRE",{"data-svelte-h":!0}),r(Ce)!=="svelte-1n5sti5"&&(Ce.textContent=Ya),Nl=s(e),Ze=o(e,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-1qiucww"&&(Ze.textContent=Fa),ql=s(e),xe=o(e,"P",{"data-svelte-h":!0}),r(xe)!=="svelte-l930ml"&&(xe.innerHTML=za),El=s(e),p(We.$$.fragment,e),Al=s(e),ke=o(e,"P",{"data-svelte-h":!0}),r(ke)!=="svelte-su8pwm"&&(ke.textContent=Qa),Pl=s(e),$e=o(e,"OL",{"data-svelte-h":!0}),r($e)!=="svelte-jraobi"&&($e.innerHTML=La),Dl=s(e),He=o(e,"P",{"data-svelte-h":!0}),r(He)!=="svelte-97jp0s"&&(He.innerHTML=Na),Kl=s(e),p(Re.$$.fragment,e),Ol=s(e),Ve=o(e,"PRE",{"data-svelte-h":!0}),r(Ve)!=="svelte-1lpy14f"&&(Ve.textContent=qa),en=s(e),_e=o(e,"P",{"data-svelte-h":!0}),r(_e)!=="svelte-ug6zdj"&&(_e.textContent=Ea),tn=s(e),p(Xe.$$.fragment,e),ln=s(e),Se=o(e,"P",{"data-svelte-h":!0}),r(Se)!=="svelte-1f1og5o"&&(Se.textContent=Aa),nn=s(e),Ye=o(e,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-18it3mz"&&(Ye.textContent=Pa),an=s(e),Fe=o(e,"P",{"data-svelte-h":!0}),r(Fe)!=="svelte-7nl279"&&(Fe.innerHTML=Da),sn=s(e),J=o(e,"IMG",{src:!0,width:!0,alt:!0}),on=s(e),ze=o(e,"P",{"data-svelte-h":!0}),r(ze)!=="svelte-112s0s1"&&(ze.innerHTML=Oa),rn=s(e),Qe=o(e,"P",{"data-svelte-h":!0}),r(Qe)!=="svelte-t0rmiw"&&(Qe.textContent=es),un=s(e),U=o(e,"UL",{});var Vt=zt(U);Le=o(Vt,"LI",{});var _t=zt(Le);St=o(_t,"P",{"data-svelte-h":!0}),r(St)!=="svelte-1rhlgw4"&&(St.innerHTML=ts),na=s(_t),p(Ne.$$.fragment,_t),_t.forEach(l),aa=s(Vt),qe=o(Vt,"LI",{});var la=zt(qe);Yt=o(la,"P",{"data-svelte-h":!0}),r(Yt)!=="svelte-qc8pgv"&&(Yt.innerHTML=ls),sa=s(la),p(Ee.$$.fragment,la),la.forEach(l),Vt.forEach(l),pn=s(e),p(Ae.$$.fragment,e),cn=s(e),Pe=o(e,"P",{"data-svelte-h":!0}),r(Pe)!=="svelte-8s6vsh"&&(Pe.textContent=ns),dn=s(e),De=o(e,"UL",{"data-svelte-h":!0}),r(De)!=="svelte-1vr4ngb"&&(De.innerHTML=as),mn=s(e),p(Ke.$$.fragment,e),hn=s(e),Oe=o(e,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-7qbjz7"&&(Oe.innerHTML=ss),yn=s(e),et=o(e,"P",{"data-svelte-h":!0}),r(et)!=="svelte-1ydqs3k"&&(et.innerHTML=is),Mn=s(e),j=o(e,"IMG",{src:!0,width:!0,alt:!0}),wn=s(e),tt=o(e,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-853jwi"&&(tt.textContent=rs),bn=s(e),p(lt.$$.fragment,e),fn=s(e),nt=o(e,"PRE",{"data-svelte-h":!0}),r(nt)!=="svelte-9gt6x0"&&(nt.textContent=us),gn=s(e),p(at.$$.fragment,e),Tn=s(e),st=o(e,"PRE",{"data-svelte-h":!0}),r(st)!=="svelte-1f419gx"&&(st.textContent=ps),Jn=s(e),it=o(e,"P",{"data-svelte-h":!0}),r(it)!=="svelte-7n3hrv"&&(it.textContent=cs),Un=s(e),ot=o(e,"UL",{"data-svelte-h":!0}),r(ot)!=="svelte-8wzody"&&(ot.innerHTML=ds),jn=s(e),rt=o(e,"P",{"data-svelte-h":!0}),r(rt)!=="svelte-edepwe"&&(rt.innerHTML=ms),In=s(e),ut=o(e,"P",{"data-svelte-h":!0}),r(ut)!=="svelte-czm7yu"&&(ut.innerHTML=hs),vn=s(e),p(I.$$.fragment,e),Bn=s(e),p(pt.$$.fragment,e),Gn=s(e),ct=o(e,"P",{"data-svelte-h":!0}),r(ct)!=="svelte-bmr5of"&&(ct.innerHTML=ys),Cn=s(e),p(dt.$$.fragment,e),Zn=s(e),mt=o(e,"P",{"data-svelte-h":!0}),r(mt)!=="svelte-6zs2wg"&&(mt.innerHTML=Ms),xn=s(e),p(ht.$$.fragment,e),Wn=s(e),yt=o(e,"P",{"data-svelte-h":!0}),r(yt)!=="svelte-j019a0"&&(yt.innerHTML=ws),kn=s(e),Mt=o(e,"P",{"data-svelte-h":!0}),r(Mt)!=="svelte-byl69c"&&(Mt.textContent=bs),$n=s(e),wt=o(e,"P",{"data-svelte-h":!0}),r(wt)!=="svelte-qd0749"&&(wt.innerHTML=fs),Hn=s(e),p(bt.$$.fragment,e),Rn=s(e),ft=o(e,"PRE",{"data-svelte-h":!0}),r(ft)!=="svelte-t58374"&&(ft.textContent=gs),Vn=s(e),gt=o(e,"P",{"data-svelte-h":!0}),r(gt)!=="svelte-1f1ercz"&&(gt.innerHTML=Ts),_n=s(e),Tt=o(e,"P",{"data-svelte-h":!0}),r(Tt)!=="svelte-1kvyfsz"&&(Tt.innerHTML=Js),Xn=s(e),p(Jt.$$.fragment,e),Sn=s(e),Ut=o(e,"PRE",{"data-svelte-h":!0}),r(Ut)!=="svelte-tb8hhx"&&(Ut.textContent=Us),Yn=s(e),jt=o(e,"P",{"data-svelte-h":!0}),r(jt)!=="svelte-n67zfm"&&(jt.innerHTML=js),Fn=s(e),p(It.$$.fragment,e),zn=s(e),vt=o(e,"PRE",{"data-svelte-h":!0}),r(vt)!=="svelte-p76wiz"&&(vt.textContent=Is),Qn=s(e),p(Bt.$$.fragment,e),Ln=s(e),Gt=o(e,"P",{"data-svelte-h":!0}),r(Gt)!=="svelte-s3ahdf"&&(Gt.textContent=vs),Nn=s(e),Ct=o(e,"P",{"data-svelte-h":!0}),r(Ct)!=="svelte-1c8mrg"&&(Ct.textContent=Bs),qn=s(e),Zt=o(e,"P",{"data-svelte-h":!0}),r(Zt)!=="svelte-1ef1i7i"&&(Zt.innerHTML=Gs),En=s(e),xt=o(e,"P",{"data-svelte-h":!0}),r(xt)!=="svelte-v4dtnd"&&(xt.textContent=Cs),An=s(e),Wt=o(e,"P",{"data-svelte-h":!0}),r(Wt)!=="svelte-thjo29"&&(Wt.textContent=Zs),Pn=s(e),kt=o(e,"P",{"data-svelte-h":!0}),r(kt)!=="svelte-3wup7e"&&(kt.innerHTML=xs),Dn=s(e),p($t.$$.fragment,e),Kn=s(e),Ht=o(e,"UL",{"data-svelte-h":!0}),r(Ht)!=="svelte-dfn8uw"&&(Ht.innerHTML=Ws),On=s(e),p(Rt.$$.fragment,e),ea=s(e),Ft=o(e,"P",{}),zt(Ft).forEach(l),this.h()},h(){v(y,"name","hf:doc:metadata"),v(y,"content",Ns),ks(J.src,Ka="https://github.com/dmaniloff/public-screenshots/blob/main/create-new-space.png?raw=true")||v(J,"src",Ka),v(J,"width","350"),v(J,"alt","image description"),ks(j.src,os="https://github.com/dmaniloff/public-screenshots/blob/main/gradio-as-api.png?raw=true")||v(j,"src",os),v(j,"width","750"),v(j,"alt","image description")},m(e,t){B(document.head,y),n(e,f,t),n(e,w,t),n(e,g,t),c(G,e,t),n(e,Qt,t),c(C,e,t),n(e,Lt,t),n(e,Z,t),n(e,Nt,t),c(x,e,t),n(e,qt,t),n(e,W,t),n(e,Et,t),n(e,k,t),n(e,At,t),n(e,$,t),n(e,Pt,t),n(e,H,t),n(e,Dt,t),c(R,e,t),n(e,Kt,t),n(e,V,t),n(e,Ot,t),c(_,e,t),n(e,el,t),n(e,X,t),n(e,tl,t),c(S,e,t),n(e,ll,t),c(Y,e,t),n(e,nl,t),n(e,F,t),n(e,al,t),n(e,z,t),n(e,sl,t),c(Q,e,t),n(e,il,t),n(e,L,t),n(e,ol,t),c(N,e,t),n(e,rl,t),n(e,q,t),n(e,ul,t),n(e,E,t),n(e,pl,t),c(A,e,t),n(e,cl,t),n(e,P,t),n(e,dl,t),n(e,D,t),n(e,ml,t),c(K,e,t),n(e,hl,t),n(e,O,t),n(e,yl,t),c(ee,e,t),n(e,Ml,t),n(e,te,t),n(e,wl,t),n(e,le,t),n(e,bl,t),n(e,ne,t),n(e,fl,t),n(e,ae,t),n(e,gl,t),c(se,e,t),n(e,Tl,t),n(e,ie,t),n(e,Jl,t),n(e,oe,t),n(e,Ul,t),n(e,re,t),n(e,jl,t),c(ue,e,t),n(e,Il,t),n(e,pe,t),n(e,vl,t),c(ce,e,t),n(e,Bl,t),n(e,de,t),n(e,Gl,t),n(e,me,t),n(e,Cl,t),n(e,he,t),n(e,Zl,t),c(T,e,t),n(e,xl,t),c(ye,e,t),n(e,Wl,t),n(e,Me,t),n(e,kl,t),n(e,we,t),n(e,$l,t),n(e,be,t),n(e,Hl,t),n(e,fe,t),n(e,Rl,t),n(e,ge,t),n(e,Vl,t),c(Te,e,t),n(e,_l,t),n(e,Je,t),n(e,Xl,t),n(e,Ue,t),n(e,Sl,t),n(e,je,t),n(e,Yl,t),c(Ie,e,t),n(e,Fl,t),c(ve,e,t),n(e,zl,t),n(e,Be,t),n(e,Ql,t),c(Ge,e,t),n(e,Ll,t),n(e,Ce,t),n(e,Nl,t),n(e,Ze,t),n(e,ql,t),n(e,xe,t),n(e,El,t),c(We,e,t),n(e,Al,t),n(e,ke,t),n(e,Pl,t),n(e,$e,t),n(e,Dl,t),n(e,He,t),n(e,Kl,t),c(Re,e,t),n(e,Ol,t),n(e,Ve,t),n(e,en,t),n(e,_e,t),n(e,tn,t),c(Xe,e,t),n(e,ln,t),n(e,Se,t),n(e,nn,t),n(e,Ye,t),n(e,an,t),n(e,Fe,t),n(e,sn,t),n(e,J,t),n(e,on,t),n(e,ze,t),n(e,rn,t),n(e,Qe,t),n(e,un,t),n(e,U,t),B(U,Le),B(Le,St),B(Le,na),c(Ne,Le,null),B(U,aa),B(U,qe),B(qe,Yt),B(qe,sa),c(Ee,qe,null),n(e,pn,t),c(Ae,e,t),n(e,cn,t),n(e,Pe,t),n(e,dn,t),n(e,De,t),n(e,mn,t),c(Ke,e,t),n(e,hn,t),n(e,Oe,t),n(e,yn,t),n(e,et,t),n(e,Mn,t),n(e,j,t),n(e,wn,t),n(e,tt,t),n(e,bn,t),c(lt,e,t),n(e,fn,t),n(e,nt,t),n(e,gn,t),c(at,e,t),n(e,Tn,t),n(e,st,t),n(e,Jn,t),n(e,it,t),n(e,Un,t),n(e,ot,t),n(e,jn,t),n(e,rt,t),n(e,In,t),n(e,ut,t),n(e,vn,t),c(I,e,t),n(e,Bn,t),c(pt,e,t),n(e,Gn,t),n(e,ct,t),n(e,Cn,t),c(dt,e,t),n(e,Zn,t),n(e,mt,t),n(e,xn,t),c(ht,e,t),n(e,Wn,t),n(e,yt,t),n(e,kn,t),n(e,Mt,t),n(e,$n,t),n(e,wt,t),n(e,Hn,t),c(bt,e,t),n(e,Rn,t),n(e,ft,t),n(e,Vn,t),n(e,gt,t),n(e,_n,t),n(e,Tt,t),n(e,Xn,t),c(Jt,e,t),n(e,Sn,t),n(e,Ut,t),n(e,Yn,t),n(e,jt,t),n(e,Fn,t),c(It,e,t),n(e,zn,t),n(e,vt,t),n(e,Qn,t),c(Bt,e,t),n(e,Ln,t),n(e,Gt,t),n(e,Nn,t),n(e,Ct,t),n(e,qn,t),n(e,Zt,t),n(e,En,t),n(e,xt,t),n(e,An,t),n(e,Wt,t),n(e,Pn,t),n(e,kt,t),n(e,Dn,t),c($t,e,t),n(e,Kn,t),n(e,Ht,t),n(e,On,t),c(Rt,e,t),n(e,ea,t),n(e,Ft,t),ta=!0},p(e,[t]){const Vt={};t&2&&(Vt.$$scope={dirty:t,ctx:e}),T.$set(Vt);const _t={};t&2&&(_t.$$scope={dirty:t,ctx:e}),I.$set(_t)},i(e){ta||(d(G.$$.fragment,e),d(C.$$.fragment,e),d(x.$$.fragment,e),d(R.$$.fragment,e),d(_.$$.fragment,e),d(S.$$.fragment,e),d(Y.$$.fragment,e),d(Q.$$.fragment,e),d(N.$$.fragment,e),d(A.$$.fragment,e),d(K.$$.fragment,e),d(ee.$$.fragment,e),d(se.$$.fragment,e),d(ue.$$.fragment,e),d(ce.$$.fragment,e),d(T.$$.fragment,e),d(ye.$$.fragment,e),d(Te.$$.fragment,e),d(Ie.$$.fragment,e),d(ve.$$.fragment,e),d(Ge.$$.fragment,e),d(We.$$.fragment,e),d(Re.$$.fragment,e),d(Xe.$$.fragment,e),d(Ne.$$.fragment,e),d(Ee.$$.fragment,e),d(Ae.$$.fragment,e),d(Ke.$$.fragment,e),d(lt.$$.fragment,e),d(at.$$.fragment,e),d(I.$$.fragment,e),d(pt.$$.fragment,e),d(dt.$$.fragment,e),d(ht.$$.fragment,e),d(bt.$$.fragment,e),d(Jt.$$.fragment,e),d(It.$$.fragment,e),d(Bt.$$.fragment,e),d($t.$$.fragment,e),d(Rt.$$.fragment,e),ta=!0)},o(e){m(G.$$.fragment,e),m(C.$$.fragment,e),m(x.$$.fragment,e),m(R.$$.fragment,e),m(_.$$.fragment,e),m(S.$$.fragment,e),m(Y.$$.fragment,e),m(Q.$$.fragment,e),m(N.$$.fragment,e),m(A.$$.fragment,e),m(K.$$.fragment,e),m(ee.$$.fragment,e),m(se.$$.fragment,e),m(ue.$$.fragment,e),m(ce.$$.fragment,e),m(T.$$.fragment,e),m(ye.$$.fragment,e),m(Te.$$.fragment,e),m(Ie.$$.fragment,e),m(ve.$$.fragment,e),m(Ge.$$.fragment,e),m(We.$$.fragment,e),m(Re.$$.fragment,e),m(Xe.$$.fragment,e),m(Ne.$$.fragment,e),m(Ee.$$.fragment,e),m(Ae.$$.fragment,e),m(Ke.$$.fragment,e),m(lt.$$.fragment,e),m(at.$$.fragment,e),m(I.$$.fragment,e),m(pt.$$.fragment,e),m(dt.$$.fragment,e),m(ht.$$.fragment,e),m(bt.$$.fragment,e),m(Jt.$$.fragment,e),m(It.$$.fragment,e),m(Bt.$$.fragment,e),m($t.$$.fragment,e),m(Rt.$$.fragment,e),ta=!1},d(e){e&&(l(f),l(w),l(g),l(Qt),l(Lt),l(Z),l(Nt),l(qt),l(W),l(Et),l(k),l(At),l($),l(Pt),l(H),l(Dt),l(Kt),l(V),l(Ot),l(el),l(X),l(tl),l(ll),l(nl),l(F),l(al),l(z),l(sl),l(il),l(L),l(ol),l(rl),l(q),l(ul),l(E),l(pl),l(cl),l(P),l(dl),l(D),l(ml),l(hl),l(O),l(yl),l(Ml),l(te),l(wl),l(le),l(bl),l(ne),l(fl),l(ae),l(gl),l(Tl),l(ie),l(Jl),l(oe),l(Ul),l(re),l(jl),l(Il),l(pe),l(vl),l(Bl),l(de),l(Gl),l(me),l(Cl),l(he),l(Zl),l(xl),l(Wl),l(Me),l(kl),l(we),l($l),l(be),l(Hl),l(fe),l(Rl),l(ge),l(Vl),l(_l),l(Je),l(Xl),l(Ue),l(Sl),l(je),l(Yl),l(Fl),l(zl),l(Be),l(Ql),l(Ll),l(Ce),l(Nl),l(Ze),l(ql),l(xe),l(El),l(Al),l(ke),l(Pl),l($e),l(Dl),l(He),l(Kl),l(Ol),l(Ve),l(en),l(_e),l(tn),l(ln),l(Se),l(nn),l(Ye),l(an),l(Fe),l(sn),l(J),l(on),l(ze),l(rn),l(Qe),l(un),l(U),l(pn),l(cn),l(Pe),l(dn),l(De),l(mn),l(hn),l(Oe),l(yn),l(et),l(Mn),l(j),l(wn),l(tt),l(bn),l(fn),l(nt),l(gn),l(Tn),l(st),l(Jn),l(it),l(Un),l(ot),l(jn),l(rt),l(In),l(ut),l(vn),l(Bn),l(Gn),l(ct),l(Cn),l(Zn),l(mt),l(xn),l(Wn),l(yt),l(kn),l(Mt),l($n),l(wt),l(Hn),l(Rn),l(ft),l(Vn),l(gt),l(_n),l(Tt),l(Xn),l(Sn),l(Ut),l(Yn),l(jt),l(Fn),l(zn),l(vt),l(Qn),l(Ln),l(Gt),l(Nn),l(Ct),l(qn),l(Zt),l(En),l(xt),l(An),l(Wt),l(Pn),l(kt),l(Dn),l(Kn),l(Ht),l(On),l(ea),l(Ft)),l(y),h(G,e),h(C,e),h(x,e),h(R,e),h(_,e),h(S,e),h(Y,e),h(Q,e),h(N,e),h(A,e),h(K,e),h(ee,e),h(se,e),h(ue,e),h(ce,e),h(T,e),h(ye,e),h(Te,e),h(Ie,e),h(ve,e),h(Ge,e),h(We,e),h(Re,e),h(Xe,e),h(Ne),h(Ee),h(Ae,e),h(Ke,e),h(lt,e),h(at,e),h(I,e),h(pt,e),h(dt,e),h(ht,e),h(bt,e),h(Jt,e),h(It,e),h(Bt,e),h($t,e),h(Rt,e)}}}const Ns='{"title":"Creating Demos with Spaces and Gradio","local":"creating-demos-with-spaces-and-gradio","sections":[{"title":"Introduction","local":"introduction","sections":[],"depth":2},{"title":"Setup","local":"setup","sections":[],"depth":2},{"title":"Your first demo: the basics of Gradio","local":"your-first-demo-the-basics-of-gradio","sections":[],"depth":2},{"title":"Let’s make it interesting: a meeting transcription tool","local":"lets-make-it-interesting-a-meeting-transcription-tool","sections":[{"title":"Audio-to-text","local":"audio-to-text","sections":[],"depth":3},{"title":"Organize & summarize text","local":"organize--summarize-text","sections":[],"depth":3},{"title":"Putting it all together","local":"putting-it-all-together","sections":[],"depth":3}],"depth":2},{"title":"Move your demo into 🤗 Spaces","local":"move-your-demo-into--spaces","sections":[],"depth":2},{"title":"Gradio comes with batteries included 🔋","local":"gradio-comes-with-batteries-included-","sections":[{"title":"Access as an API","local":"access-as-an-api","sections":[],"depth":3},{"title":"Share via public URL","local":"share-via-public-url","sections":[],"depth":3},{"title":"Flagging","local":"flagging","sections":[],"depth":3}],"depth":2},{"title":"Wrap up & Next Steps","local":"wrap-up--next-steps","sections":[],"depth":2},{"title":"⏭️ Further reading","local":"-further-reading","sections":[],"depth":2}],"depth":1}';function qs(Xt){return Vs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Os extends _s{constructor(y){super(),Xs(this,y,qs,Ls,Rs,{})}}export{Os as component};
