Spaces:
Sleeping
Sleeping
pkl file and new images
Browse files- .ipynb_checkpoints/DogsvsCats-checkpoint.ipynb +239 -0
- .ipynb_checkpoints/app-checkpoint.py +10 -0
- .ipynb_checkpoints/dog-checkpoint.jpeg +0 -0
- DogsvsCats.ipynb +239 -0
- app.py +0 -1
- dog.jpeg +0 -0
- model.pkl +3 -0
.ipynb_checkpoints/DogsvsCats-checkpoint.ipynb
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"id": "11a17bc8-2f14-44a2-973b-61634dcb57cb",
|
| 7 |
+
"metadata": {},
|
| 8 |
+
"outputs": [],
|
| 9 |
+
"source": [
|
| 10 |
+
"!pip install -Uqq fastai"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"cell_type": "code",
|
| 15 |
+
"execution_count": 4,
|
| 16 |
+
"id": "4784ef85-4f58-4197-a437-d134a7c81870",
|
| 17 |
+
"metadata": {},
|
| 18 |
+
"outputs": [
|
| 19 |
+
{
|
| 20 |
+
"name": "stdout",
|
| 21 |
+
"output_type": "stream",
|
| 22 |
+
"text": [
|
| 23 |
+
"Collecting gradio\n",
|
| 24 |
+
" Downloading gradio-3.38.0-py3-none-any.whl (19.8 MB)\n",
|
| 25 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m19.8/19.8 MB\u001b[0m \u001b[31m63.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
|
| 26 |
+
"\u001b[?25hCollecting fastapi\n",
|
| 27 |
+
" Downloading fastapi-0.100.0-py3-none-any.whl (65 kB)\n",
|
| 28 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.7/65.7 kB\u001b[0m \u001b[31m9.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 29 |
+
"\u001b[?25hRequirement already satisfied: numpy~=1.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (1.23.5)\n",
|
| 30 |
+
"Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (1.10.11)\n",
|
| 31 |
+
"Collecting mdit-py-plugins<=0.3.3\n",
|
| 32 |
+
" Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)\n",
|
| 33 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.5/50.5 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 34 |
+
"\u001b[?25hCollecting markdown-it-py[linkify]>=2.0.0\n",
|
| 35 |
+
" Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n",
|
| 36 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m87.5/87.5 kB\u001b[0m \u001b[31m14.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 37 |
+
"\u001b[?25hRequirement already satisfied: pyyaml<7.0,>=5.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (6.0)\n",
|
| 38 |
+
"Collecting websockets<12.0,>=10.0\n",
|
| 39 |
+
" Downloading websockets-11.0.3-cp310-cp310-macosx_11_0_arm64.whl (121 kB)\n",
|
| 40 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m121.0/121.0 kB\u001b[0m \u001b[31m15.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 41 |
+
"\u001b[?25hCollecting gradio-client>=0.2.10\n",
|
| 42 |
+
" Downloading gradio_client-0.2.10-py3-none-any.whl (288 kB)\n",
|
| 43 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m289.0/289.0 kB\u001b[0m \u001b[31m33.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 44 |
+
"\u001b[?25hCollecting pydub\n",
|
| 45 |
+
" Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
|
| 46 |
+
"Requirement already satisfied: markupsafe~=2.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (2.1.1)\n",
|
| 47 |
+
"Collecting httpx\n",
|
| 48 |
+
" Downloading httpx-0.24.1-py3-none-any.whl (75 kB)\n",
|
| 49 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m75.4/75.4 kB\u001b[0m \u001b[31m8.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 50 |
+
"\u001b[?25hRequirement already satisfied: matplotlib~=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (3.7.0)\n",
|
| 51 |
+
"Collecting python-multipart\n",
|
| 52 |
+
" Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)\n",
|
| 53 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m45.7/45.7 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 54 |
+
"\u001b[?25hCollecting aiofiles<24.0,>=22.0\n",
|
| 55 |
+
" Downloading aiofiles-23.1.0-py3-none-any.whl (14 kB)\n",
|
| 56 |
+
"Collecting altair<6.0,>=4.2.0\n",
|
| 57 |
+
" Downloading altair-5.0.1-py3-none-any.whl (471 kB)\n",
|
| 58 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m471.5/471.5 kB\u001b[0m \u001b[31m42.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 59 |
+
"\u001b[?25hRequirement already satisfied: requests~=2.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (2.28.1)\n",
|
| 60 |
+
"Collecting semantic-version~=2.0\n",
|
| 61 |
+
" Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
|
| 62 |
+
"Requirement already satisfied: aiohttp~=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (3.8.4)\n",
|
| 63 |
+
"Requirement already satisfied: huggingface-hub>=0.14.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (0.16.4)\n",
|
| 64 |
+
"Collecting ffmpy\n",
|
| 65 |
+
" Downloading ffmpy-0.3.1.tar.gz (5.5 kB)\n",
|
| 66 |
+
" Preparing metadata (setup.py) ... \u001b[?25ldone\n",
|
| 67 |
+
"\u001b[?25hRequirement already satisfied: typing-extensions~=4.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (4.4.0)\n",
|
| 68 |
+
"Requirement already satisfied: jinja2<4.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (3.1.2)\n",
|
| 69 |
+
"Collecting orjson~=3.0\n",
|
| 70 |
+
" Downloading orjson-3.9.2-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl (242 kB)\n",
|
| 71 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m242.8/242.8 kB\u001b[0m \u001b[31m32.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 72 |
+
"\u001b[?25hRequirement already satisfied: packaging in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (22.0)\n",
|
| 73 |
+
"Requirement already satisfied: pandas<3.0,>=1.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (1.5.3)\n",
|
| 74 |
+
"Requirement already satisfied: pillow<11.0,>=8.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (9.4.0)\n",
|
| 75 |
+
"Collecting uvicorn>=0.14.0\n",
|
| 76 |
+
" Downloading uvicorn-0.23.1-py3-none-any.whl (59 kB)\n",
|
| 77 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m59.5/59.5 kB\u001b[0m \u001b[31m8.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 78 |
+
"\u001b[?25hRequirement already satisfied: frozenlist>=1.1.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (1.3.3)\n",
|
| 79 |
+
"Requirement already satisfied: multidict<7.0,>=4.5 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (6.0.4)\n",
|
| 80 |
+
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (4.0.2)\n",
|
| 81 |
+
"Requirement already satisfied: yarl<2.0,>=1.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (1.9.2)\n",
|
| 82 |
+
"Requirement already satisfied: charset-normalizer<4.0,>=2.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (2.0.4)\n",
|
| 83 |
+
"Requirement already satisfied: attrs>=17.3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (22.1.0)\n",
|
| 84 |
+
"Requirement already satisfied: aiosignal>=1.1.2 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (1.3.1)\n",
|
| 85 |
+
"Requirement already satisfied: toolz in ./Conda/anaconda3/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.0)\n",
|
| 86 |
+
"Requirement already satisfied: jsonschema>=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio) (4.17.3)\n",
|
| 87 |
+
"Requirement already satisfied: fsspec in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio-client>=0.2.10->gradio) (2022.11.0)\n",
|
| 88 |
+
"Requirement already satisfied: filelock in ./Conda/anaconda3/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio) (3.9.0)\n",
|
| 89 |
+
"Requirement already satisfied: tqdm>=4.42.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio) (4.64.1)\n",
|
| 90 |
+
"Collecting mdurl~=0.1\n",
|
| 91 |
+
" Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n",
|
| 92 |
+
"Collecting linkify-it-py<3,>=1\n",
|
| 93 |
+
" Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)\n",
|
| 94 |
+
"Requirement already satisfied: pyparsing>=2.3.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (3.0.9)\n",
|
| 95 |
+
"Requirement already satisfied: cycler>=0.10 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (0.11.0)\n",
|
| 96 |
+
"Requirement already satisfied: python-dateutil>=2.7 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (2.8.2)\n",
|
| 97 |
+
"Requirement already satisfied: contourpy>=1.0.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (1.0.5)\n",
|
| 98 |
+
"Requirement already satisfied: kiwisolver>=1.0.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (1.4.4)\n",
|
| 99 |
+
"Requirement already satisfied: fonttools>=4.22.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (4.25.0)\n",
|
| 100 |
+
"Collecting mdit-py-plugins<=0.3.3\n",
|
| 101 |
+
" Downloading mdit_py_plugins-0.3.2-py3-none-any.whl (50 kB)\n",
|
| 102 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.4/50.4 kB\u001b[0m \u001b[31m7.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 103 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.3.1-py3-none-any.whl (46 kB)\n",
|
| 104 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m46.5/46.5 kB\u001b[0m \u001b[31m5.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 105 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.3.0-py3-none-any.whl (43 kB)\n",
|
| 106 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m43.7/43.7 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 107 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.2.8-py3-none-any.whl (41 kB)\n",
|
| 108 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.0/41.0 kB\u001b[0m \u001b[31m6.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 109 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.2.7-py3-none-any.whl (41 kB)\n",
|
| 110 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.0/41.0 kB\u001b[0m \u001b[31m6.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 111 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.2.6-py3-none-any.whl (39 kB)\n",
|
| 112 |
+
" Downloading mdit_py_plugins-0.2.5-py3-none-any.whl (39 kB)\n",
|
| 113 |
+
" Downloading mdit_py_plugins-0.2.4-py3-none-any.whl (39 kB)\n",
|
| 114 |
+
" Downloading mdit_py_plugins-0.2.3-py3-none-any.whl (39 kB)\n",
|
| 115 |
+
" Downloading mdit_py_plugins-0.2.2-py3-none-any.whl (39 kB)\n",
|
| 116 |
+
" Downloading mdit_py_plugins-0.2.1-py3-none-any.whl (38 kB)\n",
|
| 117 |
+
" Downloading mdit_py_plugins-0.2.0-py3-none-any.whl (38 kB)\n",
|
| 118 |
+
" Downloading mdit_py_plugins-0.1.0-py3-none-any.whl (37 kB)\n",
|
| 119 |
+
"INFO: pip is looking at multiple versions of matplotlib to determine which version is compatible with other requirements. This could take a while.\n",
|
| 120 |
+
"Collecting matplotlib~=3.0\n",
|
| 121 |
+
" Downloading matplotlib-3.7.2-cp310-cp310-macosx_11_0_arm64.whl (7.3 MB)\n",
|
| 122 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.3/7.3 MB\u001b[0m \u001b[31m69.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 123 |
+
"\u001b[?25hINFO: pip is looking at multiple versions of markupsafe to determine which version is compatible with other requirements. This could take a while.\n",
|
| 124 |
+
"Collecting markupsafe~=2.0\n",
|
| 125 |
+
" Downloading MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl (17 kB)\n",
|
| 126 |
+
"INFO: pip is looking at multiple versions of markdown-it-py[linkify] to determine which version is compatible with other requirements. This could take a while.\n",
|
| 127 |
+
"Collecting markdown-it-py[linkify]>=2.0.0\n",
|
| 128 |
+
" Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)\n",
|
| 129 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m84.5/84.5 kB\u001b[0m \u001b[31m10.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 130 |
+
"\u001b[?25hRequirement already satisfied: pytz>=2020.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio) (2022.7)\n",
|
| 131 |
+
"Requirement already satisfied: certifi>=2017.4.17 in ./Conda/anaconda3/lib/python3.10/site-packages (from requests~=2.0->gradio) (2023.5.7)\n",
|
| 132 |
+
"Requirement already satisfied: idna<4,>=2.5 in ./Conda/anaconda3/lib/python3.10/site-packages (from requests~=2.0->gradio) (3.4)\n",
|
| 133 |
+
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from requests~=2.0->gradio) (1.26.14)\n",
|
| 134 |
+
"Collecting h11>=0.8\n",
|
| 135 |
+
" Downloading h11-0.14.0-py3-none-any.whl (58 kB)\n",
|
| 136 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.3/58.3 kB\u001b[0m \u001b[31m7.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 137 |
+
"\u001b[?25hRequirement already satisfied: click>=7.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio) (8.0.4)\n",
|
| 138 |
+
"Collecting starlette<0.28.0,>=0.27.0\n",
|
| 139 |
+
" Downloading starlette-0.27.0-py3-none-any.whl (66 kB)\n",
|
| 140 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m67.0/67.0 kB\u001b[0m \u001b[31m11.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 141 |
+
"\u001b[?25hCollecting typing-extensions~=4.0\n",
|
| 142 |
+
" Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB)\n",
|
| 143 |
+
"Requirement already satisfied: sniffio in ./Conda/anaconda3/lib/python3.10/site-packages (from httpx->gradio) (1.2.0)\n",
|
| 144 |
+
"Collecting httpcore<0.18.0,>=0.15.0\n",
|
| 145 |
+
" Downloading httpcore-0.17.3-py3-none-any.whl (74 kB)\n",
|
| 146 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m74.5/74.5 kB\u001b[0m \u001b[31m11.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 147 |
+
"\u001b[?25hRequirement already satisfied: anyio<5.0,>=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->gradio) (3.5.0)\n",
|
| 148 |
+
"Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.18.0)\n",
|
| 149 |
+
"Collecting uc-micro-py\n",
|
| 150 |
+
" Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)\n",
|
| 151 |
+
"Requirement already satisfied: six>=1.5 in ./Conda/anaconda3/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)\n",
|
| 152 |
+
"Building wheels for collected packages: ffmpy\n",
|
| 153 |
+
" Building wheel for ffmpy (setup.py) ... \u001b[?25ldone\n",
|
| 154 |
+
"\u001b[?25h Created wheel for ffmpy: filename=ffmpy-0.3.1-py3-none-any.whl size=5580 sha256=ab1ea02f193fb94a15322ee0a9b8806ec6d678d5d31db45812e7a97482c29f87\n",
|
| 155 |
+
" Stored in directory: /Users/skamalad/Library/Caches/pip/wheels/25/a7/dd/c513d5a67b9610660774187483d20314b63e406dd6687e4b4a\n",
|
| 156 |
+
"Successfully built ffmpy\n",
|
| 157 |
+
"Installing collected packages: pydub, ffmpy, websockets, uc-micro-py, typing-extensions, semantic-version, python-multipart, orjson, mdurl, h11, aiofiles, uvicorn, starlette, markdown-it-py, linkify-it-py, httpcore, mdit-py-plugins, httpx, fastapi, altair, gradio-client, gradio\n",
|
| 158 |
+
" Attempting uninstall: typing-extensions\n",
|
| 159 |
+
" Found existing installation: typing_extensions 4.4.0\n",
|
| 160 |
+
" Uninstalling typing_extensions-4.4.0:\n",
|
| 161 |
+
" Successfully uninstalled typing_extensions-4.4.0\n",
|
| 162 |
+
"Successfully installed aiofiles-23.1.0 altair-5.0.1 fastapi-0.100.0 ffmpy-0.3.1 gradio-3.38.0 gradio-client-0.2.10 h11-0.14.0 httpcore-0.17.3 httpx-0.24.1 linkify-it-py-2.0.2 markdown-it-py-2.2.0 mdit-py-plugins-0.3.3 mdurl-0.1.2 orjson-3.9.2 pydub-0.25.1 python-multipart-0.0.6 semantic-version-2.10.0 starlette-0.27.0 typing-extensions-4.7.1 uc-micro-py-1.0.2 uvicorn-0.23.1 websockets-11.0.3\n",
|
| 163 |
+
"Note: you may need to restart the kernel to use updated packages.\n"
|
| 164 |
+
]
|
| 165 |
+
}
|
| 166 |
+
],
|
| 167 |
+
"source": [
|
| 168 |
+
"pip install gradio"
|
| 169 |
+
]
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"cell_type": "code",
|
| 173 |
+
"execution_count": 1,
|
| 174 |
+
"id": "b9ca296b-b87a-4c76-a855-3b42ee8dc5fd",
|
| 175 |
+
"metadata": {},
|
| 176 |
+
"outputs": [],
|
| 177 |
+
"source": [
|
| 178 |
+
"from fastai.vision.all import *\n",
|
| 179 |
+
"import gradio as gr\n",
|
| 180 |
+
"\n",
|
| 181 |
+
"def is_cat(x): return x[0].isupper()"
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"cell_type": "code",
|
| 186 |
+
"execution_count": 5,
|
| 187 |
+
"id": "05205c6c-0648-4446-a100-26f495e006eb",
|
| 188 |
+
"metadata": {},
|
| 189 |
+
"outputs": [
|
| 190 |
+
{
|
| 191 |
+
"ename": "FileNotFoundError",
|
| 192 |
+
"evalue": "[Errno 2] No such file or directory: 'dog.jpeg'",
|
| 193 |
+
"output_type": "error",
|
| 194 |
+
"traceback": [
|
| 195 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 196 |
+
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
|
| 197 |
+
"Cell \u001b[0;32mIn[5], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m im \u001b[38;5;241m=\u001b[39m \u001b[43mPILImage\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mdog.jpeg\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n",
|
| 198 |
+
"File \u001b[0;32m~/Conda/anaconda3/lib/python3.10/site-packages/fastai/vision/core.py:125\u001b[0m, in \u001b[0;36mPILBase.create\u001b[0;34m(cls, fn, **kwargs)\u001b[0m\n\u001b[1;32m 123\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(fn,\u001b[38;5;28mbytes\u001b[39m): fn \u001b[38;5;241m=\u001b[39m io\u001b[38;5;241m.\u001b[39mBytesIO(fn)\n\u001b[1;32m 124\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(fn,Image\u001b[38;5;241m.\u001b[39mImage): \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mcls\u001b[39m(fn)\n\u001b[0;32m--> 125\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mcls\u001b[39m(\u001b[43mload_image\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfn\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mmerge\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mcls\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_open_args\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\u001b[43m)\u001b[49m)\n",
|
| 199 |
+
"File \u001b[0;32m~/Conda/anaconda3/lib/python3.10/site-packages/fastai/vision/core.py:98\u001b[0m, in \u001b[0;36mload_image\u001b[0;34m(fn, mode)\u001b[0m\n\u001b[1;32m 96\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mload_image\u001b[39m(fn, mode\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m):\n\u001b[1;32m 97\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mOpen and load a `PIL.Image` and convert to `mode`\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m---> 98\u001b[0m im \u001b[38;5;241m=\u001b[39m \u001b[43mImage\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 99\u001b[0m im\u001b[38;5;241m.\u001b[39mload()\n\u001b[1;32m 100\u001b[0m im \u001b[38;5;241m=\u001b[39m im\u001b[38;5;241m.\u001b[39m_new(im\u001b[38;5;241m.\u001b[39mim)\n",
|
| 200 |
+
"File \u001b[0;32m~/Conda/anaconda3/lib/python3.10/site-packages/PIL/Image.py:3227\u001b[0m, in \u001b[0;36mopen\u001b[0;34m(fp, mode, formats)\u001b[0m\n\u001b[1;32m 3224\u001b[0m filename \u001b[38;5;241m=\u001b[39m fp\n\u001b[1;32m 3226\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m filename:\n\u001b[0;32m-> 3227\u001b[0m fp \u001b[38;5;241m=\u001b[39m \u001b[43mbuiltins\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfilename\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrb\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 3228\u001b[0m exclusive_fp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[1;32m 3230\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n",
|
| 201 |
+
"\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'dog.jpeg'"
|
| 202 |
+
]
|
| 203 |
+
}
|
| 204 |
+
],
|
| 205 |
+
"source": [
|
| 206 |
+
"im = PILImage.create('dog.jpeg')"
|
| 207 |
+
]
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"cell_type": "code",
|
| 211 |
+
"execution_count": null,
|
| 212 |
+
"id": "056a5744-6972-40de-8a2f-da5cc1c043a1",
|
| 213 |
+
"metadata": {},
|
| 214 |
+
"outputs": [],
|
| 215 |
+
"source": []
|
| 216 |
+
}
|
| 217 |
+
],
|
| 218 |
+
"metadata": {
|
| 219 |
+
"kernelspec": {
|
| 220 |
+
"display_name": "Python 3 (ipykernel)",
|
| 221 |
+
"language": "python",
|
| 222 |
+
"name": "python3"
|
| 223 |
+
},
|
| 224 |
+
"language_info": {
|
| 225 |
+
"codemirror_mode": {
|
| 226 |
+
"name": "ipython",
|
| 227 |
+
"version": 3
|
| 228 |
+
},
|
| 229 |
+
"file_extension": ".py",
|
| 230 |
+
"mimetype": "text/x-python",
|
| 231 |
+
"name": "python",
|
| 232 |
+
"nbconvert_exporter": "python",
|
| 233 |
+
"pygments_lexer": "ipython3",
|
| 234 |
+
"version": "3.10.9"
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
"nbformat": 4,
|
| 238 |
+
"nbformat_minor": 5
|
| 239 |
+
}
|
.ipynb_checkpoints/app-checkpoint.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
return "Hello " + name + "!!"
|
| 5 |
+
|
| 6 |
+
# Checking for git commit changes
|
| 7 |
+
|
| 8 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
+
iface.launch()
|
| 10 |
+
|
.ipynb_checkpoints/dog-checkpoint.jpeg
ADDED
|
DogsvsCats.ipynb
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"id": "11a17bc8-2f14-44a2-973b-61634dcb57cb",
|
| 7 |
+
"metadata": {},
|
| 8 |
+
"outputs": [],
|
| 9 |
+
"source": [
|
| 10 |
+
"!pip install -Uqq fastai"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"cell_type": "code",
|
| 15 |
+
"execution_count": 4,
|
| 16 |
+
"id": "4784ef85-4f58-4197-a437-d134a7c81870",
|
| 17 |
+
"metadata": {},
|
| 18 |
+
"outputs": [
|
| 19 |
+
{
|
| 20 |
+
"name": "stdout",
|
| 21 |
+
"output_type": "stream",
|
| 22 |
+
"text": [
|
| 23 |
+
"Collecting gradio\n",
|
| 24 |
+
" Downloading gradio-3.38.0-py3-none-any.whl (19.8 MB)\n",
|
| 25 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m19.8/19.8 MB\u001b[0m \u001b[31m63.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
|
| 26 |
+
"\u001b[?25hCollecting fastapi\n",
|
| 27 |
+
" Downloading fastapi-0.100.0-py3-none-any.whl (65 kB)\n",
|
| 28 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.7/65.7 kB\u001b[0m \u001b[31m9.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 29 |
+
"\u001b[?25hRequirement already satisfied: numpy~=1.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (1.23.5)\n",
|
| 30 |
+
"Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (1.10.11)\n",
|
| 31 |
+
"Collecting mdit-py-plugins<=0.3.3\n",
|
| 32 |
+
" Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)\n",
|
| 33 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.5/50.5 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 34 |
+
"\u001b[?25hCollecting markdown-it-py[linkify]>=2.0.0\n",
|
| 35 |
+
" Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n",
|
| 36 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m87.5/87.5 kB\u001b[0m \u001b[31m14.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 37 |
+
"\u001b[?25hRequirement already satisfied: pyyaml<7.0,>=5.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (6.0)\n",
|
| 38 |
+
"Collecting websockets<12.0,>=10.0\n",
|
| 39 |
+
" Downloading websockets-11.0.3-cp310-cp310-macosx_11_0_arm64.whl (121 kB)\n",
|
| 40 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m121.0/121.0 kB\u001b[0m \u001b[31m15.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 41 |
+
"\u001b[?25hCollecting gradio-client>=0.2.10\n",
|
| 42 |
+
" Downloading gradio_client-0.2.10-py3-none-any.whl (288 kB)\n",
|
| 43 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m289.0/289.0 kB\u001b[0m \u001b[31m33.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 44 |
+
"\u001b[?25hCollecting pydub\n",
|
| 45 |
+
" Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
|
| 46 |
+
"Requirement already satisfied: markupsafe~=2.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (2.1.1)\n",
|
| 47 |
+
"Collecting httpx\n",
|
| 48 |
+
" Downloading httpx-0.24.1-py3-none-any.whl (75 kB)\n",
|
| 49 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m75.4/75.4 kB\u001b[0m \u001b[31m8.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 50 |
+
"\u001b[?25hRequirement already satisfied: matplotlib~=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (3.7.0)\n",
|
| 51 |
+
"Collecting python-multipart\n",
|
| 52 |
+
" Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)\n",
|
| 53 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m45.7/45.7 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 54 |
+
"\u001b[?25hCollecting aiofiles<24.0,>=22.0\n",
|
| 55 |
+
" Downloading aiofiles-23.1.0-py3-none-any.whl (14 kB)\n",
|
| 56 |
+
"Collecting altair<6.0,>=4.2.0\n",
|
| 57 |
+
" Downloading altair-5.0.1-py3-none-any.whl (471 kB)\n",
|
| 58 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m471.5/471.5 kB\u001b[0m \u001b[31m42.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 59 |
+
"\u001b[?25hRequirement already satisfied: requests~=2.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (2.28.1)\n",
|
| 60 |
+
"Collecting semantic-version~=2.0\n",
|
| 61 |
+
" Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
|
| 62 |
+
"Requirement already satisfied: aiohttp~=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (3.8.4)\n",
|
| 63 |
+
"Requirement already satisfied: huggingface-hub>=0.14.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (0.16.4)\n",
|
| 64 |
+
"Collecting ffmpy\n",
|
| 65 |
+
" Downloading ffmpy-0.3.1.tar.gz (5.5 kB)\n",
|
| 66 |
+
" Preparing metadata (setup.py) ... \u001b[?25ldone\n",
|
| 67 |
+
"\u001b[?25hRequirement already satisfied: typing-extensions~=4.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (4.4.0)\n",
|
| 68 |
+
"Requirement already satisfied: jinja2<4.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (3.1.2)\n",
|
| 69 |
+
"Collecting orjson~=3.0\n",
|
| 70 |
+
" Downloading orjson-3.9.2-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl (242 kB)\n",
|
| 71 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m242.8/242.8 kB\u001b[0m \u001b[31m32.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 72 |
+
"\u001b[?25hRequirement already satisfied: packaging in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (22.0)\n",
|
| 73 |
+
"Requirement already satisfied: pandas<3.0,>=1.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (1.5.3)\n",
|
| 74 |
+
"Requirement already satisfied: pillow<11.0,>=8.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio) (9.4.0)\n",
|
| 75 |
+
"Collecting uvicorn>=0.14.0\n",
|
| 76 |
+
" Downloading uvicorn-0.23.1-py3-none-any.whl (59 kB)\n",
|
| 77 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m59.5/59.5 kB\u001b[0m \u001b[31m8.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 78 |
+
"\u001b[?25hRequirement already satisfied: frozenlist>=1.1.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (1.3.3)\n",
|
| 79 |
+
"Requirement already satisfied: multidict<7.0,>=4.5 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (6.0.4)\n",
|
| 80 |
+
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (4.0.2)\n",
|
| 81 |
+
"Requirement already satisfied: yarl<2.0,>=1.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (1.9.2)\n",
|
| 82 |
+
"Requirement already satisfied: charset-normalizer<4.0,>=2.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (2.0.4)\n",
|
| 83 |
+
"Requirement already satisfied: attrs>=17.3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (22.1.0)\n",
|
| 84 |
+
"Requirement already satisfied: aiosignal>=1.1.2 in ./Conda/anaconda3/lib/python3.10/site-packages (from aiohttp~=3.0->gradio) (1.3.1)\n",
|
| 85 |
+
"Requirement already satisfied: toolz in ./Conda/anaconda3/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.0)\n",
|
| 86 |
+
"Requirement already satisfied: jsonschema>=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio) (4.17.3)\n",
|
| 87 |
+
"Requirement already satisfied: fsspec in ./Conda/anaconda3/lib/python3.10/site-packages (from gradio-client>=0.2.10->gradio) (2022.11.0)\n",
|
| 88 |
+
"Requirement already satisfied: filelock in ./Conda/anaconda3/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio) (3.9.0)\n",
|
| 89 |
+
"Requirement already satisfied: tqdm>=4.42.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio) (4.64.1)\n",
|
| 90 |
+
"Collecting mdurl~=0.1\n",
|
| 91 |
+
" Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n",
|
| 92 |
+
"Collecting linkify-it-py<3,>=1\n",
|
| 93 |
+
" Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)\n",
|
| 94 |
+
"Requirement already satisfied: pyparsing>=2.3.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (3.0.9)\n",
|
| 95 |
+
"Requirement already satisfied: cycler>=0.10 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (0.11.0)\n",
|
| 96 |
+
"Requirement already satisfied: python-dateutil>=2.7 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (2.8.2)\n",
|
| 97 |
+
"Requirement already satisfied: contourpy>=1.0.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (1.0.5)\n",
|
| 98 |
+
"Requirement already satisfied: kiwisolver>=1.0.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (1.4.4)\n",
|
| 99 |
+
"Requirement already satisfied: fonttools>=4.22.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from matplotlib~=3.0->gradio) (4.25.0)\n",
|
| 100 |
+
"Collecting mdit-py-plugins<=0.3.3\n",
|
| 101 |
+
" Downloading mdit_py_plugins-0.3.2-py3-none-any.whl (50 kB)\n",
|
| 102 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.4/50.4 kB\u001b[0m \u001b[31m7.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 103 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.3.1-py3-none-any.whl (46 kB)\n",
|
| 104 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m46.5/46.5 kB\u001b[0m \u001b[31m5.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 105 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.3.0-py3-none-any.whl (43 kB)\n",
|
| 106 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m43.7/43.7 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 107 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.2.8-py3-none-any.whl (41 kB)\n",
|
| 108 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.0/41.0 kB\u001b[0m \u001b[31m6.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 109 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.2.7-py3-none-any.whl (41 kB)\n",
|
| 110 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.0/41.0 kB\u001b[0m \u001b[31m6.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 111 |
+
"\u001b[?25h Downloading mdit_py_plugins-0.2.6-py3-none-any.whl (39 kB)\n",
|
| 112 |
+
" Downloading mdit_py_plugins-0.2.5-py3-none-any.whl (39 kB)\n",
|
| 113 |
+
" Downloading mdit_py_plugins-0.2.4-py3-none-any.whl (39 kB)\n",
|
| 114 |
+
" Downloading mdit_py_plugins-0.2.3-py3-none-any.whl (39 kB)\n",
|
| 115 |
+
" Downloading mdit_py_plugins-0.2.2-py3-none-any.whl (39 kB)\n",
|
| 116 |
+
" Downloading mdit_py_plugins-0.2.1-py3-none-any.whl (38 kB)\n",
|
| 117 |
+
" Downloading mdit_py_plugins-0.2.0-py3-none-any.whl (38 kB)\n",
|
| 118 |
+
" Downloading mdit_py_plugins-0.1.0-py3-none-any.whl (37 kB)\n",
|
| 119 |
+
"INFO: pip is looking at multiple versions of matplotlib to determine which version is compatible with other requirements. This could take a while.\n",
|
| 120 |
+
"Collecting matplotlib~=3.0\n",
|
| 121 |
+
" Downloading matplotlib-3.7.2-cp310-cp310-macosx_11_0_arm64.whl (7.3 MB)\n",
|
| 122 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.3/7.3 MB\u001b[0m \u001b[31m69.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 123 |
+
"\u001b[?25hINFO: pip is looking at multiple versions of markupsafe to determine which version is compatible with other requirements. This could take a while.\n",
|
| 124 |
+
"Collecting markupsafe~=2.0\n",
|
| 125 |
+
" Downloading MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl (17 kB)\n",
|
| 126 |
+
"INFO: pip is looking at multiple versions of markdown-it-py[linkify] to determine which version is compatible with other requirements. This could take a while.\n",
|
| 127 |
+
"Collecting markdown-it-py[linkify]>=2.0.0\n",
|
| 128 |
+
" Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)\n",
|
| 129 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m84.5/84.5 kB\u001b[0m \u001b[31m10.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 130 |
+
"\u001b[?25hRequirement already satisfied: pytz>=2020.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio) (2022.7)\n",
|
| 131 |
+
"Requirement already satisfied: certifi>=2017.4.17 in ./Conda/anaconda3/lib/python3.10/site-packages (from requests~=2.0->gradio) (2023.5.7)\n",
|
| 132 |
+
"Requirement already satisfied: idna<4,>=2.5 in ./Conda/anaconda3/lib/python3.10/site-packages (from requests~=2.0->gradio) (3.4)\n",
|
| 133 |
+
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./Conda/anaconda3/lib/python3.10/site-packages (from requests~=2.0->gradio) (1.26.14)\n",
|
| 134 |
+
"Collecting h11>=0.8\n",
|
| 135 |
+
" Downloading h11-0.14.0-py3-none-any.whl (58 kB)\n",
|
| 136 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.3/58.3 kB\u001b[0m \u001b[31m7.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 137 |
+
"\u001b[?25hRequirement already satisfied: click>=7.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio) (8.0.4)\n",
|
| 138 |
+
"Collecting starlette<0.28.0,>=0.27.0\n",
|
| 139 |
+
" Downloading starlette-0.27.0-py3-none-any.whl (66 kB)\n",
|
| 140 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m67.0/67.0 kB\u001b[0m \u001b[31m11.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 141 |
+
"\u001b[?25hCollecting typing-extensions~=4.0\n",
|
| 142 |
+
" Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB)\n",
|
| 143 |
+
"Requirement already satisfied: sniffio in ./Conda/anaconda3/lib/python3.10/site-packages (from httpx->gradio) (1.2.0)\n",
|
| 144 |
+
"Collecting httpcore<0.18.0,>=0.15.0\n",
|
| 145 |
+
" Downloading httpcore-0.17.3-py3-none-any.whl (74 kB)\n",
|
| 146 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m74.5/74.5 kB\u001b[0m \u001b[31m11.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 147 |
+
"\u001b[?25hRequirement already satisfied: anyio<5.0,>=3.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->gradio) (3.5.0)\n",
|
| 148 |
+
"Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./Conda/anaconda3/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.18.0)\n",
|
| 149 |
+
"Collecting uc-micro-py\n",
|
| 150 |
+
" Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)\n",
|
| 151 |
+
"Requirement already satisfied: six>=1.5 in ./Conda/anaconda3/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)\n",
|
| 152 |
+
"Building wheels for collected packages: ffmpy\n",
|
| 153 |
+
" Building wheel for ffmpy (setup.py) ... \u001b[?25ldone\n",
|
| 154 |
+
"\u001b[?25h Created wheel for ffmpy: filename=ffmpy-0.3.1-py3-none-any.whl size=5580 sha256=ab1ea02f193fb94a15322ee0a9b8806ec6d678d5d31db45812e7a97482c29f87\n",
|
| 155 |
+
" Stored in directory: /Users/skamalad/Library/Caches/pip/wheels/25/a7/dd/c513d5a67b9610660774187483d20314b63e406dd6687e4b4a\n",
|
| 156 |
+
"Successfully built ffmpy\n",
|
| 157 |
+
"Installing collected packages: pydub, ffmpy, websockets, uc-micro-py, typing-extensions, semantic-version, python-multipart, orjson, mdurl, h11, aiofiles, uvicorn, starlette, markdown-it-py, linkify-it-py, httpcore, mdit-py-plugins, httpx, fastapi, altair, gradio-client, gradio\n",
|
| 158 |
+
" Attempting uninstall: typing-extensions\n",
|
| 159 |
+
" Found existing installation: typing_extensions 4.4.0\n",
|
| 160 |
+
" Uninstalling typing_extensions-4.4.0:\n",
|
| 161 |
+
" Successfully uninstalled typing_extensions-4.4.0\n",
|
| 162 |
+
"Successfully installed aiofiles-23.1.0 altair-5.0.1 fastapi-0.100.0 ffmpy-0.3.1 gradio-3.38.0 gradio-client-0.2.10 h11-0.14.0 httpcore-0.17.3 httpx-0.24.1 linkify-it-py-2.0.2 markdown-it-py-2.2.0 mdit-py-plugins-0.3.3 mdurl-0.1.2 orjson-3.9.2 pydub-0.25.1 python-multipart-0.0.6 semantic-version-2.10.0 starlette-0.27.0 typing-extensions-4.7.1 uc-micro-py-1.0.2 uvicorn-0.23.1 websockets-11.0.3\n",
|
| 163 |
+
"Note: you may need to restart the kernel to use updated packages.\n"
|
| 164 |
+
]
|
| 165 |
+
}
|
| 166 |
+
],
|
| 167 |
+
"source": [
|
| 168 |
+
"pip install gradio"
|
| 169 |
+
]
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"cell_type": "code",
|
| 173 |
+
"execution_count": 1,
|
| 174 |
+
"id": "b9ca296b-b87a-4c76-a855-3b42ee8dc5fd",
|
| 175 |
+
"metadata": {},
|
| 176 |
+
"outputs": [],
|
| 177 |
+
"source": [
|
| 178 |
+
"from fastai.vision.all import *\n",
|
| 179 |
+
"import gradio as gr\n",
|
| 180 |
+
"\n",
|
| 181 |
+
"def is_cat(x): return x[0].isupper()"
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"cell_type": "code",
|
| 186 |
+
"execution_count": 12,
|
| 187 |
+
"id": "05205c6c-0648-4446-a100-26f495e006eb",
|
| 188 |
+
"metadata": {},
|
| 189 |
+
"outputs": [
|
| 190 |
+
{
|
| 191 |
+
"ename": "FileNotFoundError",
|
| 192 |
+
"evalue": "[Errno 2] No such file or directory: 'dog.jpeg'",
|
| 193 |
+
"output_type": "error",
|
| 194 |
+
"traceback": [
|
| 195 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 196 |
+
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
|
| 197 |
+
"Cell \u001b[0;32mIn[12], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m im \u001b[38;5;241m=\u001b[39m \u001b[43mImage\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mdog.jpeg\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 2\u001b[0m im\u001b[38;5;241m.\u001b[39mthumbnail((\u001b[38;5;241m192\u001b[39m,\u001b[38;5;241m192\u001b[39m))\n\u001b[1;32m 3\u001b[0m display(im)\n",
|
| 198 |
+
"File \u001b[0;32m~/Conda/anaconda3/lib/python3.10/site-packages/PIL/Image.py:3227\u001b[0m, in \u001b[0;36mopen\u001b[0;34m(fp, mode, formats)\u001b[0m\n\u001b[1;32m 3224\u001b[0m filename \u001b[38;5;241m=\u001b[39m fp\n\u001b[1;32m 3226\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m filename:\n\u001b[0;32m-> 3227\u001b[0m fp \u001b[38;5;241m=\u001b[39m \u001b[43mbuiltins\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfilename\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrb\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 3228\u001b[0m exclusive_fp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[1;32m 3230\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n",
|
| 199 |
+
"\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'dog.jpeg'"
|
| 200 |
+
]
|
| 201 |
+
}
|
| 202 |
+
],
|
| 203 |
+
"source": [
|
| 204 |
+
"im = Image.open('dog.jpeg')\n",
|
| 205 |
+
"im.thumbnail((192,192))\n",
|
| 206 |
+
"display(im)"
|
| 207 |
+
]
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"cell_type": "code",
|
| 211 |
+
"execution_count": null,
|
| 212 |
+
"id": "056a5744-6972-40de-8a2f-da5cc1c043a1",
|
| 213 |
+
"metadata": {},
|
| 214 |
+
"outputs": [],
|
| 215 |
+
"source": []
|
| 216 |
+
}
|
| 217 |
+
],
|
| 218 |
+
"metadata": {
|
| 219 |
+
"kernelspec": {
|
| 220 |
+
"display_name": "Python 3 (ipykernel)",
|
| 221 |
+
"language": "python",
|
| 222 |
+
"name": "python3"
|
| 223 |
+
},
|
| 224 |
+
"language_info": {
|
| 225 |
+
"codemirror_mode": {
|
| 226 |
+
"name": "ipython",
|
| 227 |
+
"version": 3
|
| 228 |
+
},
|
| 229 |
+
"file_extension": ".py",
|
| 230 |
+
"mimetype": "text/x-python",
|
| 231 |
+
"name": "python",
|
| 232 |
+
"nbconvert_exporter": "python",
|
| 233 |
+
"pygments_lexer": "ipython3",
|
| 234 |
+
"version": "3.10.9"
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
"nbformat": 4,
|
| 238 |
+
"nbformat_minor": 5
|
| 239 |
+
}
|
app.py
CHANGED
|
@@ -8,4 +8,3 @@ def greet(name):
|
|
| 8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
iface.launch()
|
| 10 |
|
| 11 |
-
|
|
|
|
| 8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
iface.launch()
|
| 10 |
|
|
|
dog.jpeg
ADDED
|
model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64245c123e7abfd4cffca8e7140aa4d51715566d33ac03312a6ae759265e9674
|
| 3 |
+
size 47063185
|