vihuse commited on
Commit
83b44f7
β€’
1 Parent(s): 5cef95f

move app.py file

Browse files
Files changed (2) hide show
  1. app.ipynb +24 -320
  2. foods/app.py β†’ app.py +0 -0
app.ipynb CHANGED
@@ -2,8 +2,8 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 10,
6
- "id": "9ad396c0",
7
  "metadata": {},
8
  "outputs": [],
9
  "source": [
@@ -12,8 +12,8 @@
12
  },
13
  {
14
  "cell_type": "code",
15
- "execution_count": 1,
16
- "id": "bec9bc9d",
17
  "metadata": {},
18
  "outputs": [],
19
  "source": [
@@ -24,8 +24,8 @@
24
  },
25
  {
26
  "cell_type": "code",
27
- "execution_count": 2,
28
- "id": "a96df938",
29
  "metadata": {},
30
  "outputs": [
31
  {
@@ -35,7 +35,7 @@
35
  "PILImage mode=RGB size=850x500"
36
  ]
37
  },
38
- "execution_count": 2,
39
  "metadata": {},
40
  "output_type": "execute_result"
41
  }
@@ -47,8 +47,8 @@
47
  },
48
  {
49
  "cell_type": "code",
50
- "execution_count": 4,
51
- "id": "839fa49f",
52
  "metadata": {},
53
  "outputs": [],
54
  "source": [
@@ -58,8 +58,8 @@
58
  },
59
  {
60
  "cell_type": "code",
61
- "execution_count": 5,
62
- "id": "f51403e8",
63
  "metadata": {},
64
  "outputs": [
65
  {
@@ -105,7 +105,7 @@
105
  "('junk', tensor(1), tensor([0.0015, 0.9985]))"
106
  ]
107
  },
108
- "execution_count": 5,
109
  "metadata": {},
110
  "output_type": "execute_result"
111
  }
@@ -116,8 +116,8 @@
116
  },
117
  {
118
  "cell_type": "code",
119
- "execution_count": 6,
120
- "id": "1b5dbc23",
121
  "metadata": {},
122
  "outputs": [],
123
  "source": [
@@ -131,8 +131,8 @@
131
  },
132
  {
133
  "cell_type": "code",
134
- "execution_count": 7,
135
- "id": "2c44622c",
136
  "metadata": {},
137
  "outputs": [
138
  {
@@ -178,7 +178,7 @@
178
  "{'Healthy': 0.001476562931202352, 'Junk': 0.9985234141349792}"
179
  ]
180
  },
181
- "execution_count": 7,
182
  "metadata": {},
183
  "output_type": "execute_result"
184
  }
@@ -189,8 +189,8 @@
189
  },
190
  {
191
  "cell_type": "code",
192
- "execution_count": 8,
193
- "id": "d31bfcc5",
194
  "metadata": {},
195
  "outputs": [
196
  {
@@ -211,7 +211,7 @@
211
  "name": "stdout",
212
  "output_type": "stream",
213
  "text": [
214
- "Running on local URL: http://127.0.0.1:7860\n",
215
  "\n",
216
  "To create a public link, set `share=True` in `launch()`.\n"
217
  ]
@@ -220,305 +220,9 @@
220
  "data": {
221
  "text/plain": []
222
  },
223
- "execution_count": 8,
224
  "metadata": {},
225
  "output_type": "execute_result"
226
- },
227
- {
228
- "data": {
229
- "text/html": [
230
- "\n",
231
- "<style>\n",
232
- " /* Turns off some styling */\n",
233
- " progress {\n",
234
- " /* gets rid of default border in Firefox and Opera. */\n",
235
- " border: none;\n",
236
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
237
- " background-size: auto;\n",
238
- " }\n",
239
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
240
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
241
- " }\n",
242
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
243
- " background: #F44336;\n",
244
- " }\n",
245
- "</style>\n"
246
- ],
247
- "text/plain": [
248
- "<IPython.core.display.HTML object>"
249
- ]
250
- },
251
- "metadata": {},
252
- "output_type": "display_data"
253
- },
254
- {
255
- "data": {
256
- "text/html": [],
257
- "text/plain": [
258
- "<IPython.core.display.HTML object>"
259
- ]
260
- },
261
- "metadata": {},
262
- "output_type": "display_data"
263
- },
264
- {
265
- "data": {
266
- "text/html": [
267
- "\n",
268
- "<style>\n",
269
- " /* Turns off some styling */\n",
270
- " progress {\n",
271
- " /* gets rid of default border in Firefox and Opera. */\n",
272
- " border: none;\n",
273
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
274
- " background-size: auto;\n",
275
- " }\n",
276
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
277
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
278
- " }\n",
279
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
280
- " background: #F44336;\n",
281
- " }\n",
282
- "</style>\n"
283
- ],
284
- "text/plain": [
285
- "<IPython.core.display.HTML object>"
286
- ]
287
- },
288
- "metadata": {},
289
- "output_type": "display_data"
290
- },
291
- {
292
- "data": {
293
- "text/html": [],
294
- "text/plain": [
295
- "<IPython.core.display.HTML object>"
296
- ]
297
- },
298
- "metadata": {},
299
- "output_type": "display_data"
300
- },
301
- {
302
- "data": {
303
- "text/html": [
304
- "\n",
305
- "<style>\n",
306
- " /* Turns off some styling */\n",
307
- " progress {\n",
308
- " /* gets rid of default border in Firefox and Opera. */\n",
309
- " border: none;\n",
310
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
311
- " background-size: auto;\n",
312
- " }\n",
313
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
314
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
315
- " }\n",
316
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
317
- " background: #F44336;\n",
318
- " }\n",
319
- "</style>\n"
320
- ],
321
- "text/plain": [
322
- "<IPython.core.display.HTML object>"
323
- ]
324
- },
325
- "metadata": {},
326
- "output_type": "display_data"
327
- },
328
- {
329
- "data": {
330
- "text/html": [],
331
- "text/plain": [
332
- "<IPython.core.display.HTML object>"
333
- ]
334
- },
335
- "metadata": {},
336
- "output_type": "display_data"
337
- },
338
- {
339
- "data": {
340
- "text/html": [
341
- "\n",
342
- "<style>\n",
343
- " /* Turns off some styling */\n",
344
- " progress {\n",
345
- " /* gets rid of default border in Firefox and Opera. */\n",
346
- " border: none;\n",
347
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
348
- " background-size: auto;\n",
349
- " }\n",
350
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
351
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
352
- " }\n",
353
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
354
- " background: #F44336;\n",
355
- " }\n",
356
- "</style>\n"
357
- ],
358
- "text/plain": [
359
- "<IPython.core.display.HTML object>"
360
- ]
361
- },
362
- "metadata": {},
363
- "output_type": "display_data"
364
- },
365
- {
366
- "data": {
367
- "text/html": [],
368
- "text/plain": [
369
- "<IPython.core.display.HTML object>"
370
- ]
371
- },
372
- "metadata": {},
373
- "output_type": "display_data"
374
- },
375
- {
376
- "data": {
377
- "text/html": [
378
- "\n",
379
- "<style>\n",
380
- " /* Turns off some styling */\n",
381
- " progress {\n",
382
- " /* gets rid of default border in Firefox and Opera. */\n",
383
- " border: none;\n",
384
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
385
- " background-size: auto;\n",
386
- " }\n",
387
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
388
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
389
- " }\n",
390
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
391
- " background: #F44336;\n",
392
- " }\n",
393
- "</style>\n"
394
- ],
395
- "text/plain": [
396
- "<IPython.core.display.HTML object>"
397
- ]
398
- },
399
- "metadata": {},
400
- "output_type": "display_data"
401
- },
402
- {
403
- "data": {
404
- "text/html": [],
405
- "text/plain": [
406
- "<IPython.core.display.HTML object>"
407
- ]
408
- },
409
- "metadata": {},
410
- "output_type": "display_data"
411
- },
412
- {
413
- "data": {
414
- "text/html": [
415
- "\n",
416
- "<style>\n",
417
- " /* Turns off some styling */\n",
418
- " progress {\n",
419
- " /* gets rid of default border in Firefox and Opera. */\n",
420
- " border: none;\n",
421
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
422
- " background-size: auto;\n",
423
- " }\n",
424
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
425
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
426
- " }\n",
427
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
428
- " background: #F44336;\n",
429
- " }\n",
430
- "</style>\n"
431
- ],
432
- "text/plain": [
433
- "<IPython.core.display.HTML object>"
434
- ]
435
- },
436
- "metadata": {},
437
- "output_type": "display_data"
438
- },
439
- {
440
- "data": {
441
- "text/html": [],
442
- "text/plain": [
443
- "<IPython.core.display.HTML object>"
444
- ]
445
- },
446
- "metadata": {},
447
- "output_type": "display_data"
448
- },
449
- {
450
- "data": {
451
- "text/html": [
452
- "\n",
453
- "<style>\n",
454
- " /* Turns off some styling */\n",
455
- " progress {\n",
456
- " /* gets rid of default border in Firefox and Opera. */\n",
457
- " border: none;\n",
458
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
459
- " background-size: auto;\n",
460
- " }\n",
461
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
462
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
463
- " }\n",
464
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
465
- " background: #F44336;\n",
466
- " }\n",
467
- "</style>\n"
468
- ],
469
- "text/plain": [
470
- "<IPython.core.display.HTML object>"
471
- ]
472
- },
473
- "metadata": {},
474
- "output_type": "display_data"
475
- },
476
- {
477
- "data": {
478
- "text/html": [],
479
- "text/plain": [
480
- "<IPython.core.display.HTML object>"
481
- ]
482
- },
483
- "metadata": {},
484
- "output_type": "display_data"
485
- },
486
- {
487
- "data": {
488
- "text/html": [
489
- "\n",
490
- "<style>\n",
491
- " /* Turns off some styling */\n",
492
- " progress {\n",
493
- " /* gets rid of default border in Firefox and Opera. */\n",
494
- " border: none;\n",
495
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
496
- " background-size: auto;\n",
497
- " }\n",
498
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
499
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
500
- " }\n",
501
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
502
- " background: #F44336;\n",
503
- " }\n",
504
- "</style>\n"
505
- ],
506
- "text/plain": [
507
- "<IPython.core.display.HTML object>"
508
- ]
509
- },
510
- "metadata": {},
511
- "output_type": "display_data"
512
- },
513
- {
514
- "data": {
515
- "text/html": [],
516
- "text/plain": [
517
- "<IPython.core.display.HTML object>"
518
- ]
519
- },
520
- "metadata": {},
521
- "output_type": "display_data"
522
  }
523
  ],
524
  "source": [
@@ -533,8 +237,8 @@
533
  },
534
  {
535
  "cell_type": "code",
536
- "execution_count": 9,
537
- "id": "d63907df",
538
  "metadata": {},
539
  "outputs": [
540
  {
@@ -554,7 +258,7 @@
554
  {
555
  "cell_type": "code",
556
  "execution_count": null,
557
- "id": "663bae44",
558
  "metadata": {},
559
  "outputs": [],
560
  "source": []
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 11,
6
+ "id": "3c09ed9e",
7
  "metadata": {},
8
  "outputs": [],
9
  "source": [
 
12
  },
13
  {
14
  "cell_type": "code",
15
+ "execution_count": 12,
16
+ "id": "d5a509cd",
17
  "metadata": {},
18
  "outputs": [],
19
  "source": [
 
24
  },
25
  {
26
  "cell_type": "code",
27
+ "execution_count": 13,
28
+ "id": "120a4930",
29
  "metadata": {},
30
  "outputs": [
31
  {
 
35
  "PILImage mode=RGB size=850x500"
36
  ]
37
  },
38
+ "execution_count": 13,
39
  "metadata": {},
40
  "output_type": "execute_result"
41
  }
 
47
  },
48
  {
49
  "cell_type": "code",
50
+ "execution_count": 14,
51
+ "id": "5dfabdc3",
52
  "metadata": {},
53
  "outputs": [],
54
  "source": [
 
58
  },
59
  {
60
  "cell_type": "code",
61
+ "execution_count": 15,
62
+ "id": "96c494e6",
63
  "metadata": {},
64
  "outputs": [
65
  {
 
105
  "('junk', tensor(1), tensor([0.0015, 0.9985]))"
106
  ]
107
  },
108
+ "execution_count": 15,
109
  "metadata": {},
110
  "output_type": "execute_result"
111
  }
 
116
  },
117
  {
118
  "cell_type": "code",
119
+ "execution_count": 16,
120
+ "id": "95b86376",
121
  "metadata": {},
122
  "outputs": [],
123
  "source": [
 
131
  },
132
  {
133
  "cell_type": "code",
134
+ "execution_count": 17,
135
+ "id": "32b83e8c",
136
  "metadata": {},
137
  "outputs": [
138
  {
 
178
  "{'Healthy': 0.001476562931202352, 'Junk': 0.9985234141349792}"
179
  ]
180
  },
181
+ "execution_count": 17,
182
  "metadata": {},
183
  "output_type": "execute_result"
184
  }
 
189
  },
190
  {
191
  "cell_type": "code",
192
+ "execution_count": 18,
193
+ "id": "3a1898fb",
194
  "metadata": {},
195
  "outputs": [
196
  {
 
211
  "name": "stdout",
212
  "output_type": "stream",
213
  "text": [
214
+ "Running on local URL: http://127.0.0.1:7861\n",
215
  "\n",
216
  "To create a public link, set `share=True` in `launch()`.\n"
217
  ]
 
220
  "data": {
221
  "text/plain": []
222
  },
223
+ "execution_count": 18,
224
  "metadata": {},
225
  "output_type": "execute_result"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  }
227
  ],
228
  "source": [
 
237
  },
238
  {
239
  "cell_type": "code",
240
+ "execution_count": 19,
241
+ "id": "52ff7a79",
242
  "metadata": {},
243
  "outputs": [
244
  {
 
258
  {
259
  "cell_type": "code",
260
  "execution_count": null,
261
+ "id": "8302eaf2",
262
  "metadata": {},
263
  "outputs": [],
264
  "source": []
foods/app.py β†’ app.py RENAMED
File without changes