Skip to content

Commit

Permalink
load alternative.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaniloff committed Jul 4, 2024
1 parent c943e8e commit bae2d39
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions notebooks/en/enterprise_cookbook_gradio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,18 @@
"part_1_demo.launch()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> [!TIP]\n",
"> For models that are in the 🤗 Hub, you can use the [load](https://www.gradio.app/docs/gradio/load) function directly instead of building a `pipeline` by simply passing in the model name:\n",
"\n",
"```python\n",
"part_1_demo = gr.load(\"distil-whisper/distil-large-v3\")\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down

0 comments on commit bae2d39

Please sign in to comment.