Commit ·
57889bb
1
Parent(s): 95e74f1
trying to fix
Browse files
app.ipynb
DELETED
|
@@ -1,242 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"cells": [
|
| 3 |
-
{
|
| 4 |
-
"cell_type": "code",
|
| 5 |
-
"execution_count": 11,
|
| 6 |
-
"metadata": {},
|
| 7 |
-
"outputs": [
|
| 8 |
-
{
|
| 9 |
-
"name": "stdout",
|
| 10 |
-
"output_type": "stream",
|
| 11 |
-
"text": [
|
| 12 |
-
"Requirement already satisfied: fastai in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (2.8.1)\n",
|
| 13 |
-
"Collecting gradio (from -r requirements.txt (line 2))\n",
|
| 14 |
-
" Obtaining dependency information for gradio from https://files.pythonhosted.org/packages/10/d7/a474c338ada14d2f0ede127b75f16bd4a9900af267364b71e3397e907113/gradio-5.26.0-py3-none-any.whl.metadata\n",
|
| 15 |
-
" Downloading gradio-5.26.0-py3-none-any.whl.metadata (16 kB)\n",
|
| 16 |
-
"Requirement already satisfied: duckduckgo-search in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (8.0.1)\n",
|
| 17 |
-
"Requirement already satisfied: pip in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (23.2.1)\n",
|
| 18 |
-
"Requirement already satisfied: packaging in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (24.2)\n",
|
| 19 |
-
"Requirement already satisfied: fastdownload<2,>=0.0.5 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (0.0.7)\n",
|
| 20 |
-
"Requirement already satisfied: fastcore<1.9,>=1.8.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (1.8.1)\n",
|
| 21 |
-
"Requirement already satisfied: fasttransform>=0.0.2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (0.0.2)\n",
|
| 22 |
-
"Requirement already satisfied: torchvision>=0.11 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (0.21.0)\n",
|
| 23 |
-
"Requirement already satisfied: matplotlib in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (3.8.0)\n",
|
| 24 |
-
"Requirement already satisfied: pandas in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (2.1.4)\n",
|
| 25 |
-
"Requirement already satisfied: requests in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (2.31.0)\n",
|
| 26 |
-
"Requirement already satisfied: pyyaml in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (6.0.1)\n",
|
| 27 |
-
"Requirement already satisfied: fastprogress>=0.2.4 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (1.0.3)\n",
|
| 28 |
-
"Requirement already satisfied: pillow>=9.0.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (10.0.1)\n",
|
| 29 |
-
"Requirement already satisfied: scikit-learn in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (1.2.2)\n",
|
| 30 |
-
"Requirement already satisfied: scipy in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (1.11.4)\n",
|
| 31 |
-
"Requirement already satisfied: spacy<4 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (3.8.5)\n",
|
| 32 |
-
"Requirement already satisfied: plum-dispatch in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (2.5.7)\n",
|
| 33 |
-
"Requirement already satisfied: cloudpickle in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (2.2.1)\n",
|
| 34 |
-
"Requirement already satisfied: torch<2.7,>=1.10 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from fastai->-r requirements.txt (line 1)) (2.6.0)\n",
|
| 35 |
-
"Collecting aiofiles<25.0,>=22.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 36 |
-
" Obtaining dependency information for aiofiles<25.0,>=22.0 from https://files.pythonhosted.org/packages/a5/45/30bb92d442636f570cb5651bc661f52b610e2eec3f891a5dc3a4c3667db0/aiofiles-24.1.0-py3-none-any.whl.metadata\n",
|
| 37 |
-
" Using cached aiofiles-24.1.0-py3-none-any.whl.metadata (10 kB)\n",
|
| 38 |
-
"Requirement already satisfied: anyio<5.0,>=3.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (3.5.0)\n",
|
| 39 |
-
"Collecting fastapi<1.0,>=0.115.2 (from gradio->-r requirements.txt (line 2))\n",
|
| 40 |
-
" Obtaining dependency information for fastapi<1.0,>=0.115.2 from https://files.pythonhosted.org/packages/50/b3/b51f09c2ba432a576fe63758bddc81f78f0c6309d9e5c10d194313bf021e/fastapi-0.115.12-py3-none-any.whl.metadata\n",
|
| 41 |
-
" Downloading fastapi-0.115.12-py3-none-any.whl.metadata (27 kB)\n",
|
| 42 |
-
"Collecting ffmpy (from gradio->-r requirements.txt (line 2))\n",
|
| 43 |
-
" Obtaining dependency information for ffmpy from https://files.pythonhosted.org/packages/53/5d/65f40bd333463b3230b3a72d93873caaf49b0cbb5228598fafb75fcc5357/ffmpy-0.5.0-py3-none-any.whl.metadata\n",
|
| 44 |
-
" Downloading ffmpy-0.5.0-py3-none-any.whl.metadata (3.0 kB)\n",
|
| 45 |
-
"Collecting gradio-client==1.9.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 46 |
-
" Obtaining dependency information for gradio-client==1.9.0 from https://files.pythonhosted.org/packages/46/03/0ae800cf5a52c717687db9fc5fb5bfe4fa7cc2d3badf7093b4b4bf9ce931/gradio_client-1.9.0-py3-none-any.whl.metadata\n",
|
| 47 |
-
" Downloading gradio_client-1.9.0-py3-none-any.whl.metadata (7.1 kB)\n",
|
| 48 |
-
"Collecting groovy~=0.1 (from gradio->-r requirements.txt (line 2))\n",
|
| 49 |
-
" Obtaining dependency information for groovy~=0.1 from https://files.pythonhosted.org/packages/28/27/3d6dcadc8a3214d8522c1e7f6a19554e33659be44546d44a2f7572ac7d2a/groovy-0.1.2-py3-none-any.whl.metadata\n",
|
| 50 |
-
" Downloading groovy-0.1.2-py3-none-any.whl.metadata (6.1 kB)\n",
|
| 51 |
-
"Requirement already satisfied: httpx>=0.24.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (0.28.1)\n",
|
| 52 |
-
"Collecting huggingface-hub>=0.28.1 (from gradio->-r requirements.txt (line 2))\n",
|
| 53 |
-
" Obtaining dependency information for huggingface-hub>=0.28.1 from https://files.pythonhosted.org/packages/93/27/1fb384a841e9661faad1c31cbfa62864f59632e876df5d795234da51c395/huggingface_hub-0.30.2-py3-none-any.whl.metadata\n",
|
| 54 |
-
" Downloading huggingface_hub-0.30.2-py3-none-any.whl.metadata (13 kB)\n",
|
| 55 |
-
"Requirement already satisfied: jinja2<4.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (3.1.2)\n",
|
| 56 |
-
"Requirement already satisfied: markupsafe<4.0,>=2.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (2.1.3)\n",
|
| 57 |
-
"Requirement already satisfied: numpy<3.0,>=1.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (1.26.3)\n",
|
| 58 |
-
"Collecting orjson~=3.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 59 |
-
" Obtaining dependency information for orjson~=3.0 from https://files.pythonhosted.org/packages/97/29/43f91a5512b5d2535594438eb41c5357865fd5e64dec745d90a588820c75/orjson-3.10.16-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl.metadata\n",
|
| 60 |
-
" Downloading orjson-3.10.16-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl.metadata (41 kB)\n",
|
| 61 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.8/41.8 kB\u001b[0m \u001b[31m2.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 62 |
-
"\u001b[?25hCollecting pydantic<2.12,>=2.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 63 |
-
" Obtaining dependency information for pydantic<2.12,>=2.0 from https://files.pythonhosted.org/packages/b0/1d/407b29780a289868ed696d1616f4aad49d6388e5a77f567dcd2629dcd7b8/pydantic-2.11.3-py3-none-any.whl.metadata\n",
|
| 64 |
-
" Downloading pydantic-2.11.3-py3-none-any.whl.metadata (65 kB)\n",
|
| 65 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.2/65.2 kB\u001b[0m \u001b[31m2.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 66 |
-
"\u001b[?25hCollecting pydub (from gradio->-r requirements.txt (line 2))\n",
|
| 67 |
-
" Obtaining dependency information for pydub from https://files.pythonhosted.org/packages/a6/53/d78dc063216e62fc55f6b2eebb447f6a4b0a59f55c8406376f76bf959b08/pydub-0.25.1-py2.py3-none-any.whl.metadata\n",
|
| 68 |
-
" Using cached pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)\n",
|
| 69 |
-
"Collecting python-multipart>=0.0.18 (from gradio->-r requirements.txt (line 2))\n",
|
| 70 |
-
" Obtaining dependency information for python-multipart>=0.0.18 from https://files.pythonhosted.org/packages/45/58/38b5afbc1a800eeea951b9285d3912613f2603bdf897a4ab0f4bd7f405fc/python_multipart-0.0.20-py3-none-any.whl.metadata\n",
|
| 71 |
-
" Downloading python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)\n",
|
| 72 |
-
"Collecting ruff>=0.9.3 (from gradio->-r requirements.txt (line 2))\n",
|
| 73 |
-
" Obtaining dependency information for ruff>=0.9.3 from https://files.pythonhosted.org/packages/31/9a/2d0d260a58e81f388800343a45898fd8df73c608b8261c370058b675319a/ruff-0.11.7-py3-none-macosx_11_0_arm64.whl.metadata\n",
|
| 74 |
-
" Downloading ruff-0.11.7-py3-none-macosx_11_0_arm64.whl.metadata (25 kB)\n",
|
| 75 |
-
"Collecting safehttpx<0.2.0,>=0.1.6 (from gradio->-r requirements.txt (line 2))\n",
|
| 76 |
-
" Obtaining dependency information for safehttpx<0.2.0,>=0.1.6 from https://files.pythonhosted.org/packages/4d/c0/1108ad9f01567f66b3154063605b350b69c3c9366732e09e45f9fd0d1deb/safehttpx-0.1.6-py3-none-any.whl.metadata\n",
|
| 77 |
-
" Downloading safehttpx-0.1.6-py3-none-any.whl.metadata (4.2 kB)\n",
|
| 78 |
-
"Collecting semantic-version~=2.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 79 |
-
" Obtaining dependency information for semantic-version~=2.0 from https://files.pythonhosted.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl.metadata\n",
|
| 80 |
-
" Downloading semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)\n",
|
| 81 |
-
"Collecting starlette<1.0,>=0.40.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 82 |
-
" Obtaining dependency information for starlette<1.0,>=0.40.0 from https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl.metadata\n",
|
| 83 |
-
" Downloading starlette-0.46.2-py3-none-any.whl.metadata (6.2 kB)\n",
|
| 84 |
-
"Requirement already satisfied: tomlkit<0.14.0,>=0.12.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (0.13.2)\n",
|
| 85 |
-
"Requirement already satisfied: typer<1.0,>=0.12 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (0.15.2)\n",
|
| 86 |
-
"Requirement already satisfied: typing-extensions~=4.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio->-r requirements.txt (line 2)) (4.12.2)\n",
|
| 87 |
-
"Collecting uvicorn>=0.14.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 88 |
-
" Obtaining dependency information for uvicorn>=0.14.0 from https://files.pythonhosted.org/packages/b1/4b/4cef6ce21a2aaca9d852a6e84ef4f135d99fcd74fa75105e2fc0c8308acd/uvicorn-0.34.2-py3-none-any.whl.metadata\n",
|
| 89 |
-
" Downloading uvicorn-0.34.2-py3-none-any.whl.metadata (6.5 kB)\n",
|
| 90 |
-
"Requirement already satisfied: fsspec in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from gradio-client==1.9.0->gradio->-r requirements.txt (line 2)) (2023.10.0)\n",
|
| 91 |
-
"Collecting websockets<16.0,>=10.0 (from gradio-client==1.9.0->gradio->-r requirements.txt (line 2))\n",
|
| 92 |
-
" Obtaining dependency information for websockets<16.0,>=10.0 from https://files.pythonhosted.org/packages/86/f2/10b55821dd40eb696ce4704a87d57774696f9451108cff0d2824c97e0f97/websockets-15.0.1-cp311-cp311-macosx_11_0_arm64.whl.metadata\n",
|
| 93 |
-
" Downloading websockets-15.0.1-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.8 kB)\n",
|
| 94 |
-
"Requirement already satisfied: click>=8.1.8 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from duckduckgo-search->-r requirements.txt (line 3)) (8.1.8)\n",
|
| 95 |
-
"Requirement already satisfied: primp>=0.15.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from duckduckgo-search->-r requirements.txt (line 3)) (0.15.0)\n",
|
| 96 |
-
"Requirement already satisfied: lxml>=5.3.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from duckduckgo-search->-r requirements.txt (line 3)) (5.4.0)\n",
|
| 97 |
-
"Requirement already satisfied: idna>=2.8 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from anyio<5.0,>=3.0->gradio->-r requirements.txt (line 2)) (3.4)\n",
|
| 98 |
-
"Requirement already satisfied: sniffio>=1.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from anyio<5.0,>=3.0->gradio->-r requirements.txt (line 2)) (1.3.0)\n",
|
| 99 |
-
"Requirement already satisfied: certifi in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from httpx>=0.24.1->gradio->-r requirements.txt (line 2)) (2023.11.17)\n",
|
| 100 |
-
"Requirement already satisfied: httpcore==1.* in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from httpx>=0.24.1->gradio->-r requirements.txt (line 2)) (1.0.7)\n",
|
| 101 |
-
"Requirement already satisfied: h11<0.15,>=0.13 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from httpcore==1.*->httpx>=0.24.1->gradio->-r requirements.txt (line 2)) (0.14.0)\n",
|
| 102 |
-
"Requirement already satisfied: filelock in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from huggingface-hub>=0.28.1->gradio->-r requirements.txt (line 2)) (3.13.1)\n",
|
| 103 |
-
"Requirement already satisfied: tqdm>=4.42.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from huggingface-hub>=0.28.1->gradio->-r requirements.txt (line 2)) (4.65.0)\n",
|
| 104 |
-
"Requirement already satisfied: python-dateutil>=2.8.2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from pandas->fastai->-r requirements.txt (line 1)) (2.8.2)\n",
|
| 105 |
-
"Requirement already satisfied: pytz>=2020.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from pandas->fastai->-r requirements.txt (line 1)) (2023.3.post1)\n",
|
| 106 |
-
"Requirement already satisfied: tzdata>=2022.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from pandas->fastai->-r requirements.txt (line 1)) (2023.3)\n",
|
| 107 |
-
"Collecting annotated-types>=0.6.0 (from pydantic<2.12,>=2.0->gradio->-r requirements.txt (line 2))\n",
|
| 108 |
-
" Obtaining dependency information for annotated-types>=0.6.0 from https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl.metadata\n",
|
| 109 |
-
" Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)\n",
|
| 110 |
-
"Collecting pydantic-core==2.33.1 (from pydantic<2.12,>=2.0->gradio->-r requirements.txt (line 2))\n",
|
| 111 |
-
" Obtaining dependency information for pydantic-core==2.33.1 from https://files.pythonhosted.org/packages/a8/65/6ab3a536776cad5343f625245bd38165d6663256ad43f3a200e5936afd6c/pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl.metadata\n",
|
| 112 |
-
" Using cached pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.8 kB)\n",
|
| 113 |
-
"Collecting typing-inspection>=0.4.0 (from pydantic<2.12,>=2.0->gradio->-r requirements.txt (line 2))\n",
|
| 114 |
-
" Obtaining dependency information for typing-inspection>=0.4.0 from https://files.pythonhosted.org/packages/31/08/aa4fdfb71f7de5176385bd9e90852eaf6b5d622735020ad600f2bab54385/typing_inspection-0.4.0-py3-none-any.whl.metadata\n",
|
| 115 |
-
" Using cached typing_inspection-0.4.0-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 116 |
-
"Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.11 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (3.0.12)\n",
|
| 117 |
-
"Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (1.0.5)\n",
|
| 118 |
-
"Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (1.0.12)\n",
|
| 119 |
-
"Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (2.0.11)\n",
|
| 120 |
-
"Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (3.0.9)\n",
|
| 121 |
-
"Requirement already satisfied: thinc<8.4.0,>=8.3.4 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (8.3.4)\n",
|
| 122 |
-
"Requirement already satisfied: wasabi<1.2.0,>=0.9.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (1.1.3)\n",
|
| 123 |
-
"Requirement already satisfied: srsly<3.0.0,>=2.4.3 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (2.5.1)\n",
|
| 124 |
-
"Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (2.0.10)\n",
|
| 125 |
-
"Requirement already satisfied: weasel<0.5.0,>=0.1.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (0.4.1)\n",
|
| 126 |
-
"Requirement already satisfied: setuptools in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (68.0.0)\n",
|
| 127 |
-
"Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from spacy<4->fastai->-r requirements.txt (line 1)) (3.5.0)\n",
|
| 128 |
-
"Requirement already satisfied: charset-normalizer<4,>=2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from requests->fastai->-r requirements.txt (line 1)) (2.0.4)\n",
|
| 129 |
-
"Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from requests->fastai->-r requirements.txt (line 1)) (1.26.18)\n",
|
| 130 |
-
"Collecting anyio<5.0,>=3.0 (from gradio->-r requirements.txt (line 2))\n",
|
| 131 |
-
" Obtaining dependency information for anyio<5.0,>=3.0 from https://files.pythonhosted.org/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl.metadata\n",
|
| 132 |
-
" Using cached anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB)\n",
|
| 133 |
-
"Requirement already satisfied: networkx in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from torch<2.7,>=1.10->fastai->-r requirements.txt (line 1)) (3.1)\n",
|
| 134 |
-
"Requirement already satisfied: sympy==1.13.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from torch<2.7,>=1.10->fastai->-r requirements.txt (line 1)) (1.13.1)\n",
|
| 135 |
-
"Requirement already satisfied: mpmath<1.4,>=1.1.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from sympy==1.13.1->torch<2.7,>=1.10->fastai->-r requirements.txt (line 1)) (1.3.0)\n",
|
| 136 |
-
"Requirement already satisfied: shellingham>=1.3.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from typer<1.0,>=0.12->gradio->-r requirements.txt (line 2)) (1.5.4)\n",
|
| 137 |
-
"Requirement already satisfied: rich>=10.11.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from typer<1.0,>=0.12->gradio->-r requirements.txt (line 2)) (13.3.5)\n",
|
| 138 |
-
"Requirement already satisfied: contourpy>=1.0.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from matplotlib->fastai->-r requirements.txt (line 1)) (1.2.0)\n",
|
| 139 |
-
"Requirement already satisfied: cycler>=0.10 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from matplotlib->fastai->-r requirements.txt (line 1)) (0.11.0)\n",
|
| 140 |
-
"Requirement already satisfied: fonttools>=4.22.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from matplotlib->fastai->-r requirements.txt (line 1)) (4.25.0)\n",
|
| 141 |
-
"Requirement already satisfied: kiwisolver>=1.0.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from matplotlib->fastai->-r requirements.txt (line 1)) (1.4.4)\n",
|
| 142 |
-
"Requirement already satisfied: pyparsing>=2.3.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from matplotlib->fastai->-r requirements.txt (line 1)) (3.0.9)\n",
|
| 143 |
-
"Requirement already satisfied: beartype>=0.16.2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from plum-dispatch->fastai->-r requirements.txt (line 1)) (0.20.2)\n",
|
| 144 |
-
"Requirement already satisfied: joblib>=1.1.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from scikit-learn->fastai->-r requirements.txt (line 1)) (1.2.0)\n",
|
| 145 |
-
"Requirement already satisfied: threadpoolctl>=2.0.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from scikit-learn->fastai->-r requirements.txt (line 1)) (2.2.0)\n",
|
| 146 |
-
"Requirement already satisfied: language-data>=1.2 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from langcodes<4.0.0,>=3.2.0->spacy<4->fastai->-r requirements.txt (line 1)) (1.3.0)\n",
|
| 147 |
-
"Requirement already satisfied: six>=1.5 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas->fastai->-r requirements.txt (line 1)) (1.16.0)\n",
|
| 148 |
-
"Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio->-r requirements.txt (line 2)) (2.2.0)\n",
|
| 149 |
-
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio->-r requirements.txt (line 2)) (2.15.1)\n",
|
| 150 |
-
"Requirement already satisfied: blis<1.3.0,>=1.2.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from thinc<8.4.0,>=8.3.4->spacy<4->fastai->-r requirements.txt (line 1)) (1.2.1)\n",
|
| 151 |
-
"Requirement already satisfied: confection<1.0.0,>=0.0.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from thinc<8.4.0,>=8.3.4->spacy<4->fastai->-r requirements.txt (line 1)) (0.1.5)\n",
|
| 152 |
-
"Requirement already satisfied: cloudpathlib<1.0.0,>=0.7.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from weasel<0.5.0,>=0.1.0->spacy<4->fastai->-r requirements.txt (line 1)) (0.21.0)\n",
|
| 153 |
-
"Requirement already satisfied: smart-open<8.0.0,>=5.2.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from weasel<0.5.0,>=0.1.0->spacy<4->fastai->-r requirements.txt (line 1)) (5.2.1)\n",
|
| 154 |
-
"Requirement already satisfied: marisa-trie>=1.1.0 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from language-data>=1.2->langcodes<4.0.0,>=3.2.0->spacy<4->fastai->-r requirements.txt (line 1)) (1.2.1)\n",
|
| 155 |
-
"Requirement already satisfied: mdurl~=0.1 in /Users/christinapeng/anaconda3/lib/python3.11/site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio->-r requirements.txt (line 2)) (0.1.0)\n",
|
| 156 |
-
"Downloading gradio-5.26.0-py3-none-any.whl (46.9 MB)\n",
|
| 157 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m46.9/46.9 MB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
|
| 158 |
-
"\u001b[?25hDownloading gradio_client-1.9.0-py3-none-any.whl (322 kB)\n",
|
| 159 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m322.6/322.6 kB\u001b[0m \u001b[31m3.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 160 |
-
"\u001b[?25hUsing cached aiofiles-24.1.0-py3-none-any.whl (15 kB)\n",
|
| 161 |
-
"Downloading fastapi-0.115.12-py3-none-any.whl (95 kB)\n",
|
| 162 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m95.2/95.2 kB\u001b[0m \u001b[31m1.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mta \u001b[36m0:00:01\u001b[0m\n",
|
| 163 |
-
"\u001b[?25hDownloading groovy-0.1.2-py3-none-any.whl (14 kB)\n",
|
| 164 |
-
"Downloading huggingface_hub-0.30.2-py3-none-any.whl (481 kB)\n",
|
| 165 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m481.4/481.4 kB\u001b[0m \u001b[31m1.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 166 |
-
"\u001b[?25hDownloading orjson-3.10.16-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl (249 kB)\n",
|
| 167 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m249.2/249.2 kB\u001b[0m \u001b[31m1.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
|
| 168 |
-
"\u001b[?25hDownloading pydantic-2.11.3-py3-none-any.whl (443 kB)\n",
|
| 169 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m443.6/443.6 kB\u001b[0m \u001b[31m2.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 170 |
-
"\u001b[?25hUsing cached pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl (1.9 MB)\n",
|
| 171 |
-
"Downloading python_multipart-0.0.20-py3-none-any.whl (24 kB)\n",
|
| 172 |
-
"Downloading ruff-0.11.7-py3-none-macosx_11_0_arm64.whl (10.4 MB)\n",
|
| 173 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m10.4/10.4 MB\u001b[0m \u001b[31m2.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
|
| 174 |
-
"\u001b[?25hDownloading safehttpx-0.1.6-py3-none-any.whl (8.7 kB)\n",
|
| 175 |
-
"Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
|
| 176 |
-
"Downloading starlette-0.46.2-py3-none-any.whl (72 kB)\n",
|
| 177 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m72.0/72.0 kB\u001b[0m \u001b[31m11.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 178 |
-
"\u001b[?25hUsing cached anyio-4.9.0-py3-none-any.whl (100 kB)\n",
|
| 179 |
-
"Downloading uvicorn-0.34.2-py3-none-any.whl (62 kB)\n",
|
| 180 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.5/62.5 kB\u001b[0m \u001b[31m2.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 181 |
-
"\u001b[?25hDownloading ffmpy-0.5.0-py3-none-any.whl (6.0 kB)\n",
|
| 182 |
-
"Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
|
| 183 |
-
"Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)\n",
|
| 184 |
-
"Using cached typing_inspection-0.4.0-py3-none-any.whl (14 kB)\n",
|
| 185 |
-
"Downloading websockets-15.0.1-cp311-cp311-macosx_11_0_arm64.whl (173 kB)\n",
|
| 186 |
-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m173.3/173.3 kB\u001b[0m \u001b[31m5.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 187 |
-
"\u001b[?25hInstalling collected packages: pydub, websockets, uvicorn, typing-inspection, semantic-version, ruff, python-multipart, pydantic-core, orjson, groovy, ffmpy, anyio, annotated-types, aiofiles, starlette, pydantic, huggingface-hub, safehttpx, gradio-client, fastapi, gradio\n",
|
| 188 |
-
" Attempting uninstall: anyio\n",
|
| 189 |
-
" Found existing installation: anyio 3.5.0\n",
|
| 190 |
-
" Uninstalling anyio-3.5.0:\n",
|
| 191 |
-
" Successfully uninstalled anyio-3.5.0\n",
|
| 192 |
-
" Attempting uninstall: pydantic\n",
|
| 193 |
-
" Found existing installation: pydantic 1.10.12\n",
|
| 194 |
-
" Uninstalling pydantic-1.10.12:\n",
|
| 195 |
-
" Successfully uninstalled pydantic-1.10.12\n",
|
| 196 |
-
" Attempting uninstall: huggingface-hub\n",
|
| 197 |
-
" Found existing installation: huggingface-hub 0.17.3\n",
|
| 198 |
-
" Uninstalling huggingface-hub-0.17.3:\n",
|
| 199 |
-
" Successfully uninstalled huggingface-hub-0.17.3\n",
|
| 200 |
-
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
|
| 201 |
-
"anaconda-cloud-auth 0.1.4 requires pydantic<2.0, but you have pydantic 2.11.3 which is incompatible.\u001b[0m\u001b[31m\n",
|
| 202 |
-
"\u001b[0mSuccessfully installed aiofiles-24.1.0 annotated-types-0.7.0 anyio-4.9.0 fastapi-0.115.12 ffmpy-0.5.0 gradio-5.26.0 gradio-client-1.9.0 groovy-0.1.2 huggingface-hub-0.30.2 orjson-3.10.16 pydantic-2.11.3 pydantic-core-2.33.1 pydub-0.25.1 python-multipart-0.0.20 ruff-0.11.7 safehttpx-0.1.6 semantic-version-2.10.0 starlette-0.46.2 typing-inspection-0.4.0 uvicorn-0.34.2 websockets-15.0.1\n"
|
| 203 |
-
]
|
| 204 |
-
}
|
| 205 |
-
],
|
| 206 |
-
"source": [
|
| 207 |
-
"!pip install -r requirements.txt"
|
| 208 |
-
]
|
| 209 |
-
},
|
| 210 |
-
{
|
| 211 |
-
"cell_type": "code",
|
| 212 |
-
"execution_count": 12,
|
| 213 |
-
"metadata": {},
|
| 214 |
-
"outputs": [],
|
| 215 |
-
"source": [
|
| 216 |
-
"from fastai.vision.all import *\n",
|
| 217 |
-
"import gradio as gr"
|
| 218 |
-
]
|
| 219 |
-
}
|
| 220 |
-
],
|
| 221 |
-
"metadata": {
|
| 222 |
-
"kernelspec": {
|
| 223 |
-
"display_name": "base",
|
| 224 |
-
"language": "python",
|
| 225 |
-
"name": "python3"
|
| 226 |
-
},
|
| 227 |
-
"language_info": {
|
| 228 |
-
"codemirror_mode": {
|
| 229 |
-
"name": "ipython",
|
| 230 |
-
"version": 3
|
| 231 |
-
},
|
| 232 |
-
"file_extension": ".py",
|
| 233 |
-
"mimetype": "text/x-python",
|
| 234 |
-
"name": "python",
|
| 235 |
-
"nbconvert_exporter": "python",
|
| 236 |
-
"pygments_lexer": "ipython3",
|
| 237 |
-
"version": "3.11.7"
|
| 238 |
-
}
|
| 239 |
-
},
|
| 240 |
-
"nbformat": 4,
|
| 241 |
-
"nbformat_minor": 2
|
| 242 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -15,8 +15,8 @@ def classifyImage(img):
|
|
| 15 |
pred, idx, prob = learn.predict(img)
|
| 16 |
return dict(zip(categories, map(float, prob)))
|
| 17 |
|
| 18 |
-
image = gr.
|
| 19 |
-
label = gr.
|
| 20 |
examples = ['penguin.jpg', 'puffin.png', 'razorbill.jpg']
|
| 21 |
|
| 22 |
intf = gr.Interface(fn=classifyImage, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 15 |
pred, idx, prob = learn.predict(img)
|
| 16 |
return dict(zip(categories, map(float, prob)))
|
| 17 |
|
| 18 |
+
image = gr.Image(shape=(192, 192))
|
| 19 |
+
label = gr.Label()
|
| 20 |
examples = ['penguin.jpg', 'puffin.png', 'razorbill.jpg']
|
| 21 |
|
| 22 |
intf = gr.Interface(fn=classifyImage, inputs=image, outputs=label, examples=examples)
|
model.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:094e5cc0680b0a9e2fb6e716a4b1f25331de543a4150c757c41cb666653ad66e
|
| 3 |
+
size 46968126
|
runtime.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
python-3.
|
|
|
|
| 1 |
+
python-3.11
|