|
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | 5 | "execution_count": null, |
6 | | - "id": "mobile-mailing", |
| 6 | + "id": "mental-dining", |
7 | 7 | "metadata": {}, |
8 | 8 | "outputs": [], |
9 | 9 | "source": [ |
10 | 10 | "#hide\n", |
11 | | - "!pip install -Uqq fastbook\n", |
12 | | - "!pip install voila\n", |
13 | | - "!jupyter serverextension enable --sys-prefix voila\n", |
14 | | - "import fastbook\n", |
15 | | - "fastbook.setup_book()\n", |
16 | | - "from fastbook import *\n", |
| 11 | + "#!pip install -Uqq fastbook\n", |
| 12 | + "#!pip install voila\n", |
| 13 | + "#!jupyter serverextension enable --sys-prefix voila\n", |
| 14 | + "#import fastbook\n", |
| 15 | + "#fastbook.setup_book()\n", |
| 16 | + "#from fastbook import *\n", |
| 17 | + "#from fastai.vision.widgets import *\n", |
| 18 | + "from fastai.vision.all import *\n", |
17 | 19 | "from fastai.vision.widgets import *" |
18 | 20 | ] |
19 | 21 | }, |
20 | 22 | { |
21 | 23 | "cell_type": "code", |
22 | | - "execution_count": 4, |
23 | | - "id": "specific-connectivity", |
| 24 | + "execution_count": null, |
| 25 | + "id": "graphic-diana", |
24 | 26 | "metadata": {}, |
25 | 27 | "outputs": [], |
26 | 28 | "source": [ |
27 | | - "learn_inf = load_learner('export.pkl')" |
| 29 | + "path = Path()\n", |
| 30 | + "learn_inf = load_learner('export.pkl', cpu=True)" |
28 | 31 | ] |
29 | 32 | }, |
30 | 33 | { |
31 | 34 | "cell_type": "code", |
32 | 35 | "execution_count": null, |
33 | | - "id": "initial-theater", |
| 36 | + "id": "closed-drill", |
34 | 37 | "metadata": {}, |
35 | 38 | "outputs": [], |
36 | 39 | "source": [ |
|
45 | 48 | { |
46 | 49 | "cell_type": "code", |
47 | 50 | "execution_count": null, |
48 | | - "id": "invisible-grade", |
| 51 | + "id": "incorporate-wonder", |
49 | 52 | "metadata": {}, |
50 | 53 | "outputs": [], |
51 | 54 | "source": [ |
|
66 | 69 | { |
67 | 70 | "cell_type": "code", |
68 | 71 | "execution_count": null, |
69 | | - "id": "composite-sauce", |
| 72 | + "id": "phantom-investment", |
70 | 73 | "metadata": {}, |
71 | 74 | "outputs": [], |
72 | 75 | "source": [ |
|
79 | 82 | "VBox([widgets.Label('Selecciona tu cosa'), \n", |
80 | 83 | " btn_upload, btn_run, out_pl, lbl_prediction_a,lbl_prediction_b])" |
81 | 84 | ] |
| 85 | + }, |
| 86 | + { |
| 87 | + "cell_type": "code", |
| 88 | + "execution_count": null, |
| 89 | + "id": "statewide-milton", |
| 90 | + "metadata": {}, |
| 91 | + "outputs": [], |
| 92 | + "source": [] |
82 | 93 | } |
83 | 94 | ], |
84 | 95 | "metadata": { |
|
0 commit comments