Skip to content

Commit

Permalink
black formatter check
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavdixit99 committed Mar 2, 2024
1 parent b23ec36 commit 01d2445
Showing 1 changed file with 5 additions and 90 deletions.
95 changes: 5 additions & 90 deletions examples/imagebind_demo/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,99 +15,14 @@
"metadata": {},
"outputs": [],
"source": [
"!git clone https://github.com/lancedb/vectordb-recipes.git \n",
"!git clone https://github.com/lancedb/vectordb-recipes.git\n",
"%cd vectordb-recipes/examples/imagebind_demo\n",
"%pip install -r requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: gradio in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (4.19.2)\n",
"Requirement already satisfied: aiofiles<24.0,>=22.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (23.2.1)\n",
"Requirement already satisfied: altair<6.0,>=4.2.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (5.2.0)\n",
"Requirement already satisfied: fastapi in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.110.0)\n",
"Requirement already satisfied: ffmpy in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.3.2)\n",
"Requirement already satisfied: gradio-client==0.10.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.10.1)\n",
"Requirement already satisfied: httpx>=0.24.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.27.0)\n",
"Requirement already satisfied: huggingface-hub>=0.19.3 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.21.3)\n",
"Requirement already satisfied: importlib-resources<7.0,>=1.3 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (6.1.2)\n",
"Requirement already satisfied: jinja2<4.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (3.1.3)\n",
"Requirement already satisfied: markupsafe~=2.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (2.1.5)\n",
"Requirement already satisfied: matplotlib~=3.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (3.8.3)\n",
"Requirement already satisfied: numpy~=1.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (1.26.4)\n",
"Requirement already satisfied: orjson~=3.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (3.9.15)\n",
"Requirement already satisfied: packaging in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (23.2)\n",
"Requirement already satisfied: pandas<3.0,>=1.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (2.2.1)\n",
"Requirement already satisfied: pillow<11.0,>=8.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (10.2.0)\n",
"Requirement already satisfied: pydantic>=2.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (2.6.3)\n",
"Requirement already satisfied: pydub in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.25.1)\n",
"Requirement already satisfied: python-multipart>=0.0.9 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.0.9)\n",
"Requirement already satisfied: pyyaml<7.0,>=5.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (6.0.1)\n",
"Requirement already satisfied: ruff>=0.2.2 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.3.0)\n",
"Requirement already satisfied: semantic-version~=2.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (2.10.0)\n",
"Requirement already satisfied: tomlkit==0.12.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.12.0)\n",
"Requirement already satisfied: typer<1.0,>=0.9 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from typer[all]<1.0,>=0.9->gradio) (0.9.0)\n",
"Requirement already satisfied: typing-extensions~=4.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (4.10.0)\n",
"Requirement already satisfied: uvicorn>=0.14.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio) (0.27.1)\n",
"Requirement already satisfied: fsspec in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio-client==0.10.1->gradio) (2024.2.0)\n",
"Requirement already satisfied: websockets<12.0,>=10.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from gradio-client==0.10.1->gradio) (11.0.3)\n",
"Requirement already satisfied: jsonschema>=3.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio) (4.21.1)\n",
"Requirement already satisfied: toolz in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.1)\n",
"Requirement already satisfied: anyio in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from httpx>=0.24.1->gradio) (4.3.0)\n",
"Requirement already satisfied: certifi in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from httpx>=0.24.1->gradio) (2024.2.2)\n",
"Requirement already satisfied: httpcore==1.* in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from httpx>=0.24.1->gradio) (1.0.4)\n",
"Requirement already satisfied: idna in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from httpx>=0.24.1->gradio) (3.6)\n",
"Requirement already satisfied: sniffio in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from httpx>=0.24.1->gradio) (1.3.1)\n",
"Requirement already satisfied: h11<0.15,>=0.13 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from httpcore==1.*->httpx>=0.24.1->gradio) (0.14.0)\n",
"Requirement already satisfied: filelock in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from huggingface-hub>=0.19.3->gradio) (3.13.1)\n",
"Requirement already satisfied: requests in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from huggingface-hub>=0.19.3->gradio) (2.31.0)\n",
"Requirement already satisfied: tqdm>=4.42.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from huggingface-hub>=0.19.3->gradio) (4.66.2)\n",
"Requirement already satisfied: contourpy>=1.0.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (1.2.0)\n",
"Requirement already satisfied: cycler>=0.10 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (0.12.1)\n",
"Requirement already satisfied: fonttools>=4.22.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (4.49.0)\n",
"Requirement already satisfied: kiwisolver>=1.3.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (1.4.5)\n",
"Requirement already satisfied: pyparsing>=2.3.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (3.1.1)\n",
"Requirement already satisfied: python-dateutil>=2.7 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (2.9.0)\n",
"Requirement already satisfied: pytz>=2020.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio) (2024.1)\n",
"Requirement already satisfied: tzdata>=2022.7 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio) (2024.1)\n",
"Requirement already satisfied: annotated-types>=0.4.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from pydantic>=2.0->gradio) (0.6.0)\n",
"Requirement already satisfied: pydantic-core==2.16.3 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from pydantic>=2.0->gradio) (2.16.3)\n",
"Requirement already satisfied: click<9.0.0,>=7.1.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from typer<1.0,>=0.9->typer[all]<1.0,>=0.9->gradio) (8.1.7)\n",
"Requirement already satisfied: colorama<0.5.0,>=0.4.3 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from typer[all]<1.0,>=0.9->gradio) (0.4.6)\n",
"Requirement already satisfied: shellingham<2.0.0,>=1.3.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from typer[all]<1.0,>=0.9->gradio) (1.5.4)\n",
"Requirement already satisfied: rich<14.0.0,>=10.11.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from typer[all]<1.0,>=0.9->gradio) (13.7.1)\n",
"Requirement already satisfied: starlette<0.37.0,>=0.36.3 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from fastapi->gradio) (0.36.3)\n",
"Requirement already satisfied: attrs>=22.2.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (23.2.0)\n",
"Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (2023.12.1)\n",
"Requirement already satisfied: referencing>=0.28.4 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.33.0)\n",
"Requirement already satisfied: rpds-py>=0.7.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.18.0)\n",
"Requirement already satisfied: six>=1.5 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)\n",
"Requirement already satisfied: markdown-it-py>=2.2.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from rich<14.0.0,>=10.11.0->typer[all]<1.0,>=0.9->gradio) (3.0.0)\n",
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from rich<14.0.0,>=10.11.0->typer[all]<1.0,>=0.9->gradio) (2.17.2)\n",
"Requirement already satisfied: exceptiongroup>=1.0.2 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from anyio->httpx>=0.24.1->gradio) (1.2.0)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from requests->huggingface-hub>=0.19.3->gradio) (3.3.2)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from requests->huggingface-hub>=0.19.3->gradio) (2.2.1)\n",
"Requirement already satisfied: mdurl~=0.1 in /Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich<14.0.0,>=10.11.0->typer[all]<1.0,>=0.9->gradio) (0.1.2)\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
]
}
],
"source": [
"! pip install gradio"
]
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand All @@ -124,13 +39,13 @@
" warnings.warn(\n",
"/Users/raghavdixit/Desktop/open_source/vectordb-recipes_rd/.env/lib/python3.10/site-packages/torchvision/transforms/_transforms_video.py:22: UserWarning: The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms' module instead.\n",
" warnings.warn(\n",
"Running on local URL: http://127.0.0.1:7861\n",
"Running on public URL: https://6de08e25eebb3b3661.gradio.live\n",
"Running on local URL: http://127.0.0.1:7860\n",
"Running on public URL: https://9a7b06fd92e0284673.gradio.live\n",
"\n",
"This 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",
"^C\n",
"Keyboard interruption in main thread... closing server.\n",
"Killing tunnel 127.0.0.1:7861 <> https://6de08e25eebb3b3661.gradio.live\n"
"Killing tunnel 127.0.0.1:7860 <> https://9a7b06fd92e0284673.gradio.live\n"
]
}
],
Expand Down

0 comments on commit 01d2445

Please sign in to comment.