hightowerr commited on
Commit
61dffa9
·
1 Parent(s): 95c0cea

added requirements

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.jpg filter=lfs diff=lfs merge=lfs -text
.ipynb_checkpoints/app-checkpoint.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 47,
6
  "id": "88aaacc6-8379-4b6b-b3b4-eea4d9acaea0",
7
  "metadata": {},
8
  "outputs": [],
@@ -20,7 +20,7 @@
20
  },
21
  {
22
  "cell_type": "code",
23
- "execution_count": 65,
24
  "id": "844c3071-836e-46c5-b30e-2b8d96a8e369",
25
  "metadata": {},
26
  "outputs": [],
@@ -33,7 +33,7 @@
33
  },
34
  {
35
  "cell_type": "code",
36
- "execution_count": 66,
37
  "id": "ded0d929-67f6-4a69-b223-dee3ad189139",
38
  "metadata": {},
39
  "outputs": [],
@@ -43,7 +43,7 @@
43
  },
44
  {
45
  "cell_type": "code",
46
- "execution_count": 67,
47
  "id": "6b7aeaaa-8260-45fa-9178-e064b0132c36",
48
  "metadata": {},
49
  "outputs": [],
@@ -55,7 +55,7 @@
55
  },
56
  {
57
  "cell_type": "code",
58
- "execution_count": 68,
59
  "id": "a0dfbe70-b826-4903-95cf-ae59c498a3b6",
60
  "metadata": {},
61
  "outputs": [],
@@ -68,7 +68,7 @@
68
  },
69
  {
70
  "cell_type": "code",
71
- "execution_count": 69,
72
  "id": "a5aaeeb6-6a93-4de8-be39-36c4b5d90ee4",
73
  "metadata": {},
74
  "outputs": [],
@@ -78,7 +78,7 @@
78
  },
79
  {
80
  "cell_type": "code",
81
- "execution_count": 70,
82
  "id": "7fcc53f8-0326-49d0-a110-1140148d6301",
83
  "metadata": {},
84
  "outputs": [],
@@ -88,7 +88,7 @@
88
  },
89
  {
90
  "cell_type": "code",
91
- "execution_count": 71,
92
  "id": "6173ae0f-fa63-4a94-b9f6-e0f9534ff8d9",
93
  "metadata": {},
94
  "outputs": [],
@@ -98,7 +98,7 @@
98
  },
99
  {
100
  "cell_type": "code",
101
- "execution_count": 72,
102
  "id": "490af644-cb3c-4f8c-9e12-1a7cf9c18fc0",
103
  "metadata": {},
104
  "outputs": [],
@@ -111,7 +111,7 @@
111
  },
112
  {
113
  "cell_type": "code",
114
- "execution_count": 73,
115
  "id": "e3618d64-5db3-4659-b30f-f917939f509a",
116
  "metadata": {},
117
  "outputs": [],
@@ -122,7 +122,7 @@
122
  },
123
  {
124
  "cell_type": "code",
125
- "execution_count": 74,
126
  "id": "b2475bb3-b820-4a9d-b3b7-488e9e2971bc",
127
  "metadata": {},
128
  "outputs": [],
@@ -133,26 +133,26 @@
133
  },
134
  {
135
  "cell_type": "code",
136
- "execution_count": 75,
137
  "id": "1cdad192-403a-44d4-b006-661afebe18da",
138
  "metadata": {},
139
  "outputs": [],
140
  "source": [
141
  "#|export\n",
142
- "path = Path('../fastai')\n",
143
  "learn_inf = load_learner(path/'export.pkl')"
144
  ]
145
  },
146
  {
147
  "cell_type": "code",
148
- "execution_count": 76,
149
  "id": "c72e52ad-30b5-4c06-83d4-35095e43d419",
150
  "metadata": {},
151
  "outputs": [
152
  {
153
  "data": {
154
  "application/vnd.jupyter.widget-view+json": {
155
- "model_id": "7ec47a7f52a449a398a190e295f76328",
156
  "version_major": 2,
157
  "version_minor": 0
158
  },
@@ -160,7 +160,7 @@
160
  "Button(description='Classify', style=ButtonStyle())"
161
  ]
162
  },
163
- "execution_count": 76,
164
  "metadata": {},
165
  "output_type": "execute_result"
166
  }
@@ -173,7 +173,7 @@
173
  },
174
  {
175
  "cell_type": "code",
176
- "execution_count": 77,
177
  "id": "936e0aa5-4344-4b86-9e7d-b21adbd6b5ab",
178
  "metadata": {},
179
  "outputs": [],
@@ -191,7 +191,7 @@
191
  },
192
  {
193
  "cell_type": "code",
194
- "execution_count": 78,
195
  "id": "3bb8c7a0-3fb4-4fbb-9361-c62095a541a8",
196
  "metadata": {},
197
  "outputs": [],
@@ -201,7 +201,7 @@
201
  },
202
  {
203
  "cell_type": "code",
204
- "execution_count": 79,
205
  "id": "a6e2a398-f6c8-4444-b0f2-e538a1b36da2",
206
  "metadata": {},
207
  "outputs": [
@@ -209,7 +209,7 @@
209
  "name": "stdout",
210
  "output_type": "stream",
211
  "text": [
212
- "Running on local URL: http://127.0.0.1:7867\n",
213
  "\n",
214
  "To create a public link, set `share=True` in `launch()`.\n"
215
  ]
@@ -218,7 +218,7 @@
218
  "data": {
219
  "text/plain": []
220
  },
221
- "execution_count": 79,
222
  "metadata": {},
223
  "output_type": "execute_result"
224
  }
@@ -227,7 +227,7 @@
227
  "#|export\n",
228
  "image = gr.Image()\n",
229
  "label = gr.Label()\n",
230
- "examples = ['images/Adi_trainers.jpg', 'images/Nike_trainers.jpg', 'images/Puma_trainers.jpg', 'images/Adidas_trainers.jpg']\n",
231
  "\n",
232
  "intf = gr.Interface(fn=on_click_classify, inputs=image, outputs=label, examples=examples)\n",
233
  "intf.launch(inline=False)"
@@ -243,7 +243,7 @@
243
  },
244
  {
245
  "cell_type": "code",
246
- "execution_count": 80,
247
  "id": "f5c57105-41fe-4d79-a2b0-d52ed75ea6cb",
248
  "metadata": {},
249
  "outputs": [
@@ -256,8 +256,8 @@
256
  }
257
  ],
258
  "source": [
259
- "import nbdev\n",
260
- "nbdev.export.nb_export('app.ipynb', './')\n",
261
  "print('Export successful')"
262
  ]
263
  },
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 14,
6
  "id": "88aaacc6-8379-4b6b-b3b4-eea4d9acaea0",
7
  "metadata": {},
8
  "outputs": [],
 
20
  },
21
  {
22
  "cell_type": "code",
23
+ "execution_count": 15,
24
  "id": "844c3071-836e-46c5-b30e-2b8d96a8e369",
25
  "metadata": {},
26
  "outputs": [],
 
33
  },
34
  {
35
  "cell_type": "code",
36
+ "execution_count": 16,
37
  "id": "ded0d929-67f6-4a69-b223-dee3ad189139",
38
  "metadata": {},
39
  "outputs": [],
 
43
  },
44
  {
45
  "cell_type": "code",
46
+ "execution_count": 17,
47
  "id": "6b7aeaaa-8260-45fa-9178-e064b0132c36",
48
  "metadata": {},
49
  "outputs": [],
 
55
  },
56
  {
57
  "cell_type": "code",
58
+ "execution_count": 18,
59
  "id": "a0dfbe70-b826-4903-95cf-ae59c498a3b6",
60
  "metadata": {},
61
  "outputs": [],
 
68
  },
69
  {
70
  "cell_type": "code",
71
+ "execution_count": 19,
72
  "id": "a5aaeeb6-6a93-4de8-be39-36c4b5d90ee4",
73
  "metadata": {},
74
  "outputs": [],
 
78
  },
79
  {
80
  "cell_type": "code",
81
+ "execution_count": 20,
82
  "id": "7fcc53f8-0326-49d0-a110-1140148d6301",
83
  "metadata": {},
84
  "outputs": [],
 
88
  },
89
  {
90
  "cell_type": "code",
91
+ "execution_count": 21,
92
  "id": "6173ae0f-fa63-4a94-b9f6-e0f9534ff8d9",
93
  "metadata": {},
94
  "outputs": [],
 
98
  },
99
  {
100
  "cell_type": "code",
101
+ "execution_count": 22,
102
  "id": "490af644-cb3c-4f8c-9e12-1a7cf9c18fc0",
103
  "metadata": {},
104
  "outputs": [],
 
111
  },
112
  {
113
  "cell_type": "code",
114
+ "execution_count": 23,
115
  "id": "e3618d64-5db3-4659-b30f-f917939f509a",
116
  "metadata": {},
117
  "outputs": [],
 
122
  },
123
  {
124
  "cell_type": "code",
125
+ "execution_count": 24,
126
  "id": "b2475bb3-b820-4a9d-b3b7-488e9e2971bc",
127
  "metadata": {},
128
  "outputs": [],
 
133
  },
134
  {
135
  "cell_type": "code",
136
+ "execution_count": 25,
137
  "id": "1cdad192-403a-44d4-b006-661afebe18da",
138
  "metadata": {},
139
  "outputs": [],
140
  "source": [
141
  "#|export\n",
142
+ "path = Path('.')\n",
143
  "learn_inf = load_learner(path/'export.pkl')"
144
  ]
145
  },
146
  {
147
  "cell_type": "code",
148
+ "execution_count": 26,
149
  "id": "c72e52ad-30b5-4c06-83d4-35095e43d419",
150
  "metadata": {},
151
  "outputs": [
152
  {
153
  "data": {
154
  "application/vnd.jupyter.widget-view+json": {
155
+ "model_id": "5f97fdb318344504a5a7213bf667fdbb",
156
  "version_major": 2,
157
  "version_minor": 0
158
  },
 
160
  "Button(description='Classify', style=ButtonStyle())"
161
  ]
162
  },
163
+ "execution_count": 26,
164
  "metadata": {},
165
  "output_type": "execute_result"
166
  }
 
173
  },
174
  {
175
  "cell_type": "code",
176
+ "execution_count": 27,
177
  "id": "936e0aa5-4344-4b86-9e7d-b21adbd6b5ab",
178
  "metadata": {},
179
  "outputs": [],
 
191
  },
192
  {
193
  "cell_type": "code",
194
+ "execution_count": 28,
195
  "id": "3bb8c7a0-3fb4-4fbb-9361-c62095a541a8",
196
  "metadata": {},
197
  "outputs": [],
 
201
  },
202
  {
203
  "cell_type": "code",
204
+ "execution_count": 29,
205
  "id": "a6e2a398-f6c8-4444-b0f2-e538a1b36da2",
206
  "metadata": {},
207
  "outputs": [
 
209
  "name": "stdout",
210
  "output_type": "stream",
211
  "text": [
212
+ "Running on local URL: http://127.0.0.1:7864\n",
213
  "\n",
214
  "To create a public link, set `share=True` in `launch()`.\n"
215
  ]
 
218
  "data": {
219
  "text/plain": []
220
  },
221
+ "execution_count": 29,
222
  "metadata": {},
223
  "output_type": "execute_result"
224
  }
 
227
  "#|export\n",
228
  "image = gr.Image()\n",
229
  "label = gr.Label()\n",
230
+ "examples = ['Adi_trainers.jpg', 'Nike_trainers.jpg', 'Puma_trainers.jpg', 'Adidas_trainers.jpg']\n",
231
  "\n",
232
  "intf = gr.Interface(fn=on_click_classify, inputs=image, outputs=label, examples=examples)\n",
233
  "intf.launch(inline=False)"
 
243
  },
244
  {
245
  "cell_type": "code",
246
+ "execution_count": 30,
247
  "id": "f5c57105-41fe-4d79-a2b0-d52ed75ea6cb",
248
  "metadata": {},
249
  "outputs": [
 
256
  }
257
  ],
258
  "source": [
259
+ "from nbdev.export import nb_export\n",
260
+ "nb_export('app.ipynb', './')\n",
261
  "print('Export successful')"
262
  ]
263
  },
Adi_trainers.jpg ADDED

Git LFS Details

  • SHA256: 292c998e8c50fbe540e019a01c0562b38fcc400da2758ea658ac007d6c6f10c1
  • Pointer size: 131 Bytes
  • Size of remote file: 138 kB
Adidas_trainers.jpg ADDED

Git LFS Details

  • SHA256: 62660074a4f114fd96b93e8600d78cc0e8a13a1e2cc158a8b7ce80ca57f89eb5
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
Nike_trainers.jpg ADDED

Git LFS Details

  • SHA256: d3357f8b26b01b5d0ac5e19ed86094c6f7b4979ea4a8f5595fc4cf4c118c0a48
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
Puma_trainers.jpg ADDED

Git LFS Details

  • SHA256: 34284a913f7753c961b7e5cd662cd5f73c0a1f36ebf3b57d2f0cb7b6b09742c3
  • Pointer size: 130 Bytes
  • Size of remote file: 21.8 kB
app.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 1,
6
  "id": "88aaacc6-8379-4b6b-b3b4-eea4d9acaea0",
7
  "metadata": {},
8
  "outputs": [],
@@ -20,19 +20,10 @@
20
  },
21
  {
22
  "cell_type": "code",
23
- "execution_count": 2,
24
  "id": "844c3071-836e-46c5-b30e-2b8d96a8e369",
25
  "metadata": {},
26
- "outputs": [
27
- {
28
- "name": "stderr",
29
- "output_type": "stream",
30
- "text": [
31
- "/home/yunix/.local/lib/python3.10/site-packages/matplotlib/projections/__init__.py:63: UserWarning: Unable to import Axes3D. This may be due to multiple versions of Matplotlib being installed (e.g. as a system package and as a pip package). As a result, the 3D projection is not available.\n",
32
- " warnings.warn(\"Unable to import Axes3D. This may be due to multiple versions of \"\n"
33
- ]
34
- }
35
- ],
36
  "source": [
37
  "#|export\n",
38
  "from fastai.vision.all import *\n",
@@ -42,7 +33,7 @@
42
  },
43
  {
44
  "cell_type": "code",
45
- "execution_count": 66,
46
  "id": "ded0d929-67f6-4a69-b223-dee3ad189139",
47
  "metadata": {},
48
  "outputs": [],
@@ -52,7 +43,7 @@
52
  },
53
  {
54
  "cell_type": "code",
55
- "execution_count": 67,
56
  "id": "6b7aeaaa-8260-45fa-9178-e064b0132c36",
57
  "metadata": {},
58
  "outputs": [],
@@ -64,7 +55,7 @@
64
  },
65
  {
66
  "cell_type": "code",
67
- "execution_count": 68,
68
  "id": "a0dfbe70-b826-4903-95cf-ae59c498a3b6",
69
  "metadata": {},
70
  "outputs": [],
@@ -77,7 +68,7 @@
77
  },
78
  {
79
  "cell_type": "code",
80
- "execution_count": 69,
81
  "id": "a5aaeeb6-6a93-4de8-be39-36c4b5d90ee4",
82
  "metadata": {},
83
  "outputs": [],
@@ -87,7 +78,7 @@
87
  },
88
  {
89
  "cell_type": "code",
90
- "execution_count": 70,
91
  "id": "7fcc53f8-0326-49d0-a110-1140148d6301",
92
  "metadata": {},
93
  "outputs": [],
@@ -97,7 +88,7 @@
97
  },
98
  {
99
  "cell_type": "code",
100
- "execution_count": 71,
101
  "id": "6173ae0f-fa63-4a94-b9f6-e0f9534ff8d9",
102
  "metadata": {},
103
  "outputs": [],
@@ -107,7 +98,7 @@
107
  },
108
  {
109
  "cell_type": "code",
110
- "execution_count": 72,
111
  "id": "490af644-cb3c-4f8c-9e12-1a7cf9c18fc0",
112
  "metadata": {},
113
  "outputs": [],
@@ -120,7 +111,7 @@
120
  },
121
  {
122
  "cell_type": "code",
123
- "execution_count": 73,
124
  "id": "e3618d64-5db3-4659-b30f-f917939f509a",
125
  "metadata": {},
126
  "outputs": [],
@@ -131,7 +122,7 @@
131
  },
132
  {
133
  "cell_type": "code",
134
- "execution_count": 74,
135
  "id": "b2475bb3-b820-4a9d-b3b7-488e9e2971bc",
136
  "metadata": {},
137
  "outputs": [],
@@ -142,7 +133,7 @@
142
  },
143
  {
144
  "cell_type": "code",
145
- "execution_count": 5,
146
  "id": "1cdad192-403a-44d4-b006-661afebe18da",
147
  "metadata": {},
148
  "outputs": [],
@@ -154,14 +145,14 @@
154
  },
155
  {
156
  "cell_type": "code",
157
- "execution_count": 6,
158
  "id": "c72e52ad-30b5-4c06-83d4-35095e43d419",
159
  "metadata": {},
160
  "outputs": [
161
  {
162
  "data": {
163
  "application/vnd.jupyter.widget-view+json": {
164
- "model_id": "ae40d4f5ffb846c8875f56eeb6c9249c",
165
  "version_major": 2,
166
  "version_minor": 0
167
  },
@@ -169,7 +160,7 @@
169
  "Button(description='Classify', style=ButtonStyle())"
170
  ]
171
  },
172
- "execution_count": 6,
173
  "metadata": {},
174
  "output_type": "execute_result"
175
  }
@@ -182,7 +173,7 @@
182
  },
183
  {
184
  "cell_type": "code",
185
- "execution_count": 7,
186
  "id": "936e0aa5-4344-4b86-9e7d-b21adbd6b5ab",
187
  "metadata": {},
188
  "outputs": [],
@@ -200,7 +191,7 @@
200
  },
201
  {
202
  "cell_type": "code",
203
- "execution_count": 8,
204
  "id": "3bb8c7a0-3fb4-4fbb-9361-c62095a541a8",
205
  "metadata": {},
206
  "outputs": [],
@@ -210,7 +201,7 @@
210
  },
211
  {
212
  "cell_type": "code",
213
- "execution_count": 12,
214
  "id": "a6e2a398-f6c8-4444-b0f2-e538a1b36da2",
215
  "metadata": {},
216
  "outputs": [
@@ -218,7 +209,7 @@
218
  "name": "stdout",
219
  "output_type": "stream",
220
  "text": [
221
- "Running on local URL: http://127.0.0.1:7863\n",
222
  "\n",
223
  "To create a public link, set `share=True` in `launch()`.\n"
224
  ]
@@ -227,7 +218,7 @@
227
  "data": {
228
  "text/plain": []
229
  },
230
- "execution_count": 12,
231
  "metadata": {},
232
  "output_type": "execute_result"
233
  }
@@ -236,7 +227,7 @@
236
  "#|export\n",
237
  "image = gr.Image()\n",
238
  "label = gr.Label()\n",
239
- "examples = ['../images/Adi_trainers.jpg', '../images/Nike_trainers.jpg', '../images/Puma_trainers.jpg', '../images/Adidas_trainers.jpg']\n",
240
  "\n",
241
  "intf = gr.Interface(fn=on_click_classify, inputs=image, outputs=label, examples=examples)\n",
242
  "intf.launch(inline=False)"
@@ -252,7 +243,7 @@
252
  },
253
  {
254
  "cell_type": "code",
255
- "execution_count": 13,
256
  "id": "f5c57105-41fe-4d79-a2b0-d52ed75ea6cb",
257
  "metadata": {},
258
  "outputs": [
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 14,
6
  "id": "88aaacc6-8379-4b6b-b3b4-eea4d9acaea0",
7
  "metadata": {},
8
  "outputs": [],
 
20
  },
21
  {
22
  "cell_type": "code",
23
+ "execution_count": 15,
24
  "id": "844c3071-836e-46c5-b30e-2b8d96a8e369",
25
  "metadata": {},
26
+ "outputs": [],
 
 
 
 
 
 
 
 
 
27
  "source": [
28
  "#|export\n",
29
  "from fastai.vision.all import *\n",
 
33
  },
34
  {
35
  "cell_type": "code",
36
+ "execution_count": 16,
37
  "id": "ded0d929-67f6-4a69-b223-dee3ad189139",
38
  "metadata": {},
39
  "outputs": [],
 
43
  },
44
  {
45
  "cell_type": "code",
46
+ "execution_count": 17,
47
  "id": "6b7aeaaa-8260-45fa-9178-e064b0132c36",
48
  "metadata": {},
49
  "outputs": [],
 
55
  },
56
  {
57
  "cell_type": "code",
58
+ "execution_count": 18,
59
  "id": "a0dfbe70-b826-4903-95cf-ae59c498a3b6",
60
  "metadata": {},
61
  "outputs": [],
 
68
  },
69
  {
70
  "cell_type": "code",
71
+ "execution_count": 19,
72
  "id": "a5aaeeb6-6a93-4de8-be39-36c4b5d90ee4",
73
  "metadata": {},
74
  "outputs": [],
 
78
  },
79
  {
80
  "cell_type": "code",
81
+ "execution_count": 20,
82
  "id": "7fcc53f8-0326-49d0-a110-1140148d6301",
83
  "metadata": {},
84
  "outputs": [],
 
88
  },
89
  {
90
  "cell_type": "code",
91
+ "execution_count": 21,
92
  "id": "6173ae0f-fa63-4a94-b9f6-e0f9534ff8d9",
93
  "metadata": {},
94
  "outputs": [],
 
98
  },
99
  {
100
  "cell_type": "code",
101
+ "execution_count": 22,
102
  "id": "490af644-cb3c-4f8c-9e12-1a7cf9c18fc0",
103
  "metadata": {},
104
  "outputs": [],
 
111
  },
112
  {
113
  "cell_type": "code",
114
+ "execution_count": 23,
115
  "id": "e3618d64-5db3-4659-b30f-f917939f509a",
116
  "metadata": {},
117
  "outputs": [],
 
122
  },
123
  {
124
  "cell_type": "code",
125
+ "execution_count": 24,
126
  "id": "b2475bb3-b820-4a9d-b3b7-488e9e2971bc",
127
  "metadata": {},
128
  "outputs": [],
 
133
  },
134
  {
135
  "cell_type": "code",
136
+ "execution_count": 25,
137
  "id": "1cdad192-403a-44d4-b006-661afebe18da",
138
  "metadata": {},
139
  "outputs": [],
 
145
  },
146
  {
147
  "cell_type": "code",
148
+ "execution_count": 26,
149
  "id": "c72e52ad-30b5-4c06-83d4-35095e43d419",
150
  "metadata": {},
151
  "outputs": [
152
  {
153
  "data": {
154
  "application/vnd.jupyter.widget-view+json": {
155
+ "model_id": "5f97fdb318344504a5a7213bf667fdbb",
156
  "version_major": 2,
157
  "version_minor": 0
158
  },
 
160
  "Button(description='Classify', style=ButtonStyle())"
161
  ]
162
  },
163
+ "execution_count": 26,
164
  "metadata": {},
165
  "output_type": "execute_result"
166
  }
 
173
  },
174
  {
175
  "cell_type": "code",
176
+ "execution_count": 27,
177
  "id": "936e0aa5-4344-4b86-9e7d-b21adbd6b5ab",
178
  "metadata": {},
179
  "outputs": [],
 
191
  },
192
  {
193
  "cell_type": "code",
194
+ "execution_count": 28,
195
  "id": "3bb8c7a0-3fb4-4fbb-9361-c62095a541a8",
196
  "metadata": {},
197
  "outputs": [],
 
201
  },
202
  {
203
  "cell_type": "code",
204
+ "execution_count": 29,
205
  "id": "a6e2a398-f6c8-4444-b0f2-e538a1b36da2",
206
  "metadata": {},
207
  "outputs": [
 
209
  "name": "stdout",
210
  "output_type": "stream",
211
  "text": [
212
+ "Running on local URL: http://127.0.0.1:7864\n",
213
  "\n",
214
  "To create a public link, set `share=True` in `launch()`.\n"
215
  ]
 
218
  "data": {
219
  "text/plain": []
220
  },
221
+ "execution_count": 29,
222
  "metadata": {},
223
  "output_type": "execute_result"
224
  }
 
227
  "#|export\n",
228
  "image = gr.Image()\n",
229
  "label = gr.Label()\n",
230
+ "examples = ['Adi_trainers.jpg', 'Nike_trainers.jpg', 'Puma_trainers.jpg', 'Adidas_trainers.jpg']\n",
231
  "\n",
232
  "intf = gr.Interface(fn=on_click_classify, inputs=image, outputs=label, examples=examples)\n",
233
  "intf.launch(inline=False)"
 
243
  },
244
  {
245
  "cell_type": "code",
246
+ "execution_count": 31,
247
  "id": "f5c57105-41fe-4d79-a2b0-d52ed75ea6cb",
248
  "metadata": {},
249
  "outputs": [
app.py CHANGED
@@ -25,7 +25,7 @@ def on_click_classify(img):
25
  # %% app.ipynb 16
26
  image = gr.Image()
27
  label = gr.Label()
28
- examples = ['../images/Adi_trainers.jpg', '../images/Nike_trainers.jpg', '../images/Puma_trainers.jpg', '../images/Adidas_trainers.jpg']
29
 
30
  intf = gr.Interface(fn=on_click_classify, inputs=image, outputs=label, examples=examples)
31
  intf.launch(inline=False)
 
25
  # %% app.ipynb 16
26
  image = gr.Image()
27
  label = gr.Label()
28
+ examples = ['Adi_trainers.jpg', 'Nike_trainers.jpg', 'Puma_trainers.jpg', 'Adidas_trainers.jpg']
29
 
30
  intf = gr.Interface(fn=on_click_classify, inputs=image, outputs=label, examples=examples)
31
  intf.launch(inline=False)
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ fastai