Skip to content

Instantly share code, notes, and snippets.

@ShimanoN
Last active January 30, 2023 00:45
Show Gist options
  • Save ShimanoN/1bd433bbd54cdc04f256a5aec206a521 to your computer and use it in GitHub Desktop.
Save ShimanoN/1bd433bbd54cdc04f256a5aec206a521 to your computer and use it in GitHub Desktop.
Untitled1.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyPCpJiZ7poGh4QgSK3EXLv8",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/ShimanoN/1bd433bbd54cdc04f256a5aec206a521/untitled1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "V3GsWgPRGC3T",
"outputId": "44b67f35-0496-44a2-e7df-c32db8b22794"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.3/6.3 MB\u001b[0m \u001b[31m25.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m190.3/190.3 KB\u001b[0m \u001b[31m10.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.6/7.6 MB\u001b[0m \u001b[31m50.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h Building wheel for openai-whisper (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
]
}
],
"source": [
"!pip install git+https://github.com/openai/whisper.git -q "
]
},
{
"cell_type": "code",
"source": [
"import whisper\n",
"\n",
"model = whisper.load_model(\"tiny\")"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "CODLWoj2Gydw",
"outputId": "d6a75ccb-8714-4962-ef5c-1968918c8d40"
},
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stderr",
"text": [
"100%|█████████████████████████████████████| 72.1M/72.1M [00:01<00:00, 40.1MiB/s]\n"
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment