Upgraded fastai version
Browse files
app.ipynb
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
},
|
10 |
{
|
11 |
"cell_type": "code",
|
12 |
-
"execution_count":
|
13 |
"metadata": {},
|
14 |
"outputs": [],
|
15 |
"source": [
|
@@ -24,7 +24,7 @@
|
|
24 |
},
|
25 |
{
|
26 |
"cell_type": "code",
|
27 |
-
"execution_count":
|
28 |
"metadata": {},
|
29 |
"outputs": [
|
30 |
{
|
@@ -35,7 +35,7 @@
|
|
35 |
"PILImage mode=RGB size=144x192"
|
36 |
]
|
37 |
},
|
38 |
-
"execution_count":
|
39 |
"metadata": {},
|
40 |
"output_type": "execute_result"
|
41 |
}
|
@@ -48,7 +48,7 @@
|
|
48 |
},
|
49 |
{
|
50 |
"cell_type": "code",
|
51 |
-
"execution_count":
|
52 |
"metadata": {},
|
53 |
"outputs": [],
|
54 |
"source": [
|
@@ -63,7 +63,7 @@
|
|
63 |
},
|
64 |
{
|
65 |
"cell_type": "code",
|
66 |
-
"execution_count":
|
67 |
"metadata": {},
|
68 |
"outputs": [
|
69 |
{
|
@@ -109,7 +109,7 @@
|
|
109 |
"('False', tensor(0), tensor([0.9858, 0.0142]))"
|
110 |
]
|
111 |
},
|
112 |
-
"execution_count":
|
113 |
"metadata": {},
|
114 |
"output_type": "execute_result"
|
115 |
}
|
@@ -120,7 +120,7 @@
|
|
120 |
},
|
121 |
{
|
122 |
"cell_type": "code",
|
123 |
-
"execution_count":
|
124 |
"metadata": {},
|
125 |
"outputs": [],
|
126 |
"source": [
|
@@ -134,7 +134,7 @@
|
|
134 |
},
|
135 |
{
|
136 |
"cell_type": "code",
|
137 |
-
"execution_count":
|
138 |
"metadata": {},
|
139 |
"outputs": [
|
140 |
{
|
@@ -166,7 +166,14 @@
|
|
166 |
},
|
167 |
{
|
168 |
"data": {
|
169 |
-
"text/html": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
"text/plain": [
|
171 |
"<IPython.core.display.HTML object>"
|
172 |
]
|
@@ -180,7 +187,7 @@
|
|
180 |
"{'Dog': 0.9858279228210449, 'Cat': 0.01417205948382616}"
|
181 |
]
|
182 |
},
|
183 |
-
"execution_count":
|
184 |
"metadata": {},
|
185 |
"output_type": "execute_result"
|
186 |
}
|
@@ -191,15 +198,15 @@
|
|
191 |
},
|
192 |
{
|
193 |
"cell_type": "code",
|
194 |
-
"execution_count":
|
195 |
"metadata": {},
|
196 |
"outputs": [
|
197 |
{
|
198 |
"name": "stdout",
|
199 |
"output_type": "stream",
|
200 |
"text": [
|
201 |
-
"Running on local URL: http://127.0.0.1:
|
202 |
-
"Running on public URL: https://
|
203 |
"\n",
|
204 |
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"
|
205 |
]
|
@@ -208,7 +215,7 @@
|
|
208 |
"data": {
|
209 |
"text/plain": []
|
210 |
},
|
211 |
-
"execution_count":
|
212 |
"metadata": {},
|
213 |
"output_type": "execute_result"
|
214 |
}
|
@@ -226,7 +233,7 @@
|
|
226 |
},
|
227 |
{
|
228 |
"cell_type": "code",
|
229 |
-
"execution_count":
|
230 |
"metadata": {},
|
231 |
"outputs": [],
|
232 |
"source": [
|
@@ -235,7 +242,7 @@
|
|
235 |
},
|
236 |
{
|
237 |
"cell_type": "code",
|
238 |
-
"execution_count":
|
239 |
"metadata": {},
|
240 |
"outputs": [],
|
241 |
"source": [
|
@@ -244,7 +251,7 @@
|
|
244 |
},
|
245 |
{
|
246 |
"cell_type": "code",
|
247 |
-
"execution_count":
|
248 |
"metadata": {},
|
249 |
"outputs": [
|
250 |
{
|
@@ -267,7 +274,7 @@
|
|
267 |
" requires_grad=True)"
|
268 |
]
|
269 |
},
|
270 |
-
"execution_count":
|
271 |
"metadata": {},
|
272 |
"output_type": "execute_result"
|
273 |
}
|
@@ -285,7 +292,7 @@
|
|
285 |
},
|
286 |
{
|
287 |
"cell_type": "code",
|
288 |
-
"execution_count":
|
289 |
"metadata": {},
|
290 |
"outputs": [
|
291 |
{
|
@@ -304,6 +311,13 @@
|
|
304 |
"nbdev.export.nb_export('app.ipynb', 'app')\n",
|
305 |
"print('Export successful')\n"
|
306 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
}
|
308 |
],
|
309 |
"metadata": {
|
|
|
9 |
},
|
10 |
{
|
11 |
"cell_type": "code",
|
12 |
+
"execution_count": 45,
|
13 |
"metadata": {},
|
14 |
"outputs": [],
|
15 |
"source": [
|
|
|
24 |
},
|
25 |
{
|
26 |
"cell_type": "code",
|
27 |
+
"execution_count": 46,
|
28 |
"metadata": {},
|
29 |
"outputs": [
|
30 |
{
|
|
|
35 |
"PILImage mode=RGB size=144x192"
|
36 |
]
|
37 |
},
|
38 |
+
"execution_count": 46,
|
39 |
"metadata": {},
|
40 |
"output_type": "execute_result"
|
41 |
}
|
|
|
48 |
},
|
49 |
{
|
50 |
"cell_type": "code",
|
51 |
+
"execution_count": 47,
|
52 |
"metadata": {},
|
53 |
"outputs": [],
|
54 |
"source": [
|
|
|
63 |
},
|
64 |
{
|
65 |
"cell_type": "code",
|
66 |
+
"execution_count": 48,
|
67 |
"metadata": {},
|
68 |
"outputs": [
|
69 |
{
|
|
|
109 |
"('False', tensor(0), tensor([0.9858, 0.0142]))"
|
110 |
]
|
111 |
},
|
112 |
+
"execution_count": 48,
|
113 |
"metadata": {},
|
114 |
"output_type": "execute_result"
|
115 |
}
|
|
|
120 |
},
|
121 |
{
|
122 |
"cell_type": "code",
|
123 |
+
"execution_count": 49,
|
124 |
"metadata": {},
|
125 |
"outputs": [],
|
126 |
"source": [
|
|
|
134 |
},
|
135 |
{
|
136 |
"cell_type": "code",
|
137 |
+
"execution_count": 50,
|
138 |
"metadata": {},
|
139 |
"outputs": [
|
140 |
{
|
|
|
166 |
},
|
167 |
{
|
168 |
"data": {
|
169 |
+
"text/html": [
|
170 |
+
"\n",
|
171 |
+
" <div>\n",
|
172 |
+
" <progress value='0' class='' max='1' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
|
173 |
+
" 0.00% [0/1 00:00<?]\n",
|
174 |
+
" </div>\n",
|
175 |
+
" "
|
176 |
+
],
|
177 |
"text/plain": [
|
178 |
"<IPython.core.display.HTML object>"
|
179 |
]
|
|
|
187 |
"{'Dog': 0.9858279228210449, 'Cat': 0.01417205948382616}"
|
188 |
]
|
189 |
},
|
190 |
+
"execution_count": 50,
|
191 |
"metadata": {},
|
192 |
"output_type": "execute_result"
|
193 |
}
|
|
|
198 |
},
|
199 |
{
|
200 |
"cell_type": "code",
|
201 |
+
"execution_count": 51,
|
202 |
"metadata": {},
|
203 |
"outputs": [
|
204 |
{
|
205 |
"name": "stdout",
|
206 |
"output_type": "stream",
|
207 |
"text": [
|
208 |
+
"Running on local URL: http://127.0.0.1:7867\n",
|
209 |
+
"Running on public URL: https://6d512f6527d3ef5868.gradio.live\n",
|
210 |
"\n",
|
211 |
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"
|
212 |
]
|
|
|
215 |
"data": {
|
216 |
"text/plain": []
|
217 |
},
|
218 |
+
"execution_count": 51,
|
219 |
"metadata": {},
|
220 |
"output_type": "execute_result"
|
221 |
}
|
|
|
233 |
},
|
234 |
{
|
235 |
"cell_type": "code",
|
236 |
+
"execution_count": 52,
|
237 |
"metadata": {},
|
238 |
"outputs": [],
|
239 |
"source": [
|
|
|
242 |
},
|
243 |
{
|
244 |
"cell_type": "code",
|
245 |
+
"execution_count": 53,
|
246 |
"metadata": {},
|
247 |
"outputs": [],
|
248 |
"source": [
|
|
|
251 |
},
|
252 |
{
|
253 |
"cell_type": "code",
|
254 |
+
"execution_count": 54,
|
255 |
"metadata": {},
|
256 |
"outputs": [
|
257 |
{
|
|
|
274 |
" requires_grad=True)"
|
275 |
]
|
276 |
},
|
277 |
+
"execution_count": 54,
|
278 |
"metadata": {},
|
279 |
"output_type": "execute_result"
|
280 |
}
|
|
|
292 |
},
|
293 |
{
|
294 |
"cell_type": "code",
|
295 |
+
"execution_count": 55,
|
296 |
"metadata": {},
|
297 |
"outputs": [
|
298 |
{
|
|
|
311 |
"nbdev.export.nb_export('app.ipynb', 'app')\n",
|
312 |
"print('Export successful')\n"
|
313 |
]
|
314 |
+
},
|
315 |
+
{
|
316 |
+
"cell_type": "code",
|
317 |
+
"execution_count": null,
|
318 |
+
"metadata": {},
|
319 |
+
"outputs": [],
|
320 |
+
"source": []
|
321 |
}
|
322 |
],
|
323 |
"metadata": {
|