diff --git a/examples/audio_search/main.ipynb b/examples/audio_search/main.ipynb index ce19c4cd..49037f35 100644 --- a/examples/audio_search/main.ipynb +++ b/examples/audio_search/main.ipynb @@ -32,8 +32,8 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Requirement already satisfied: datasets in /usr/local/lib/python3.10/dist-packages (2.17.1)\n", "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets) (3.13.1)\n", @@ -178,8 +178,8 @@ }, "outputs": [ { - "output_type": "stream", "name": "stderr", + "output_type": "stream", "text": [ "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_token.py:88: UserWarning: \n", "The secret `HF_TOKEN` does not exist in your Colab secrets.\n", @@ -192,8 +192,8 @@ ] }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Checkpoint path: /root/panns_data/Cnn14_mAP=0.431.pth\n", "GPU number: 1\n" @@ -217,7 +217,6 @@ }, "outputs": [ { - "output_type": "execute_result", "data": { "text/plain": [ "Dataset({\n", @@ -226,8 +225,9 @@ "})" ] }, + "execution_count": 5, "metadata": {}, - "execution_count": 5 + "output_type": "execute_result" } ], "source": [ @@ -279,8 +279,8 @@ }, "outputs": [ { - "output_type": "stream", "name": "stderr", + "output_type": "stream", "text": [ "100%|██████████| 40/40 [00:13<00:00, 2.99it/s]\n" ] @@ -322,16 +322,16 @@ "cell_type": "code", "execution_count": 14, "metadata": { - "id": "3lh_d6m3WRjw", - "outputId": "691acc64-5791-42b4-9f0f-3992f54b62da", "colab": { "base_uri": "https://localhost:8080/" - } + }, + "id": "3lh_d6m3WRjw", + "outputId": "691acc64-5791-42b4-9f0f-3992f54b62da" }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Created Table\n" ] @@ -401,19 +401,6 @@ " tbl.add(data)" ] }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "id": "UvEhnuLyWRjw" - }, - "outputs": [], - "source": [ - "import shutil\n", - "\n", - "shutil.rmtree(\"data/audio-lancedb/audio-search.lance\")" - ] - }, { "cell_type": "markdown", "metadata": { @@ -465,11 +452,7 @@ }, "outputs": [ { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Category: water_drops\n" ] @@ -518,8 +505,8 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ " audio \\\n", "0 [0.00506591796875, 0.00653076171875, 0.0051574... \n", @@ -544,8 +531,8 @@ ] }, { - "output_type": "stream", "name": "stderr", + "output_type": "stream", "text": [ ":2: UnsupportedWarning: to_df is unsupported as of 0.4.0. Use to_pandas() instead\n", " result = tbl.search(embedding[0]).limit(5).to_df()\n" @@ -571,18 +558,14 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "0. Category: water_drops\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "1. Category: water_drops\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "2. Category: water_drops\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "3. Category: drinking_sipping\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "4. Category: water_drops\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" } ], "source": [ @@ -751,11 +738,7 @@ }, "outputs": [ { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Category: car_horn\n", " audio \\\n", @@ -796,19 +783,15 @@ ] }, { - "output_type": "stream", "name": "stderr", + "output_type": "stream", "text": [ ":9: UnsupportedWarning: to_df is unsupported as of 0.4.0. Use to_pandas() instead\n", " result = tbl.search(embedding[0]).limit(5).to_df()\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "1. Category: washing_machine\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "2. Category: vacuum_cleaner\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "3. Category: clapping\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "4. Category: footsteps\n" ] }, { - "output_type": "display_data", "data": { - "text/plain": [ - "" - ], "text/html": [ "\n", " \n", " " + ], + "text/plain": [ + "" ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" } ], "source": [ @@ -948,4 +935,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}