Dangurangu commited on
Commit
2269551
1 Parent(s): c30cfb5

Cats and Dog classifier

.DS_Store ADDED
Binary file (6.15 kB). View file
 
.ipynb_checkpoints/Cats and Dogs classifier test notebook-checkpoint.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 3,
6
  "id": "178f75ea",
7
  "metadata": {},
8
  "outputs": [],
@@ -26,7 +26,7 @@
26
  },
27
  {
28
  "cell_type": "code",
29
- "execution_count": 9,
30
  "id": "45599222",
31
  "metadata": {},
32
  "outputs": [],
@@ -38,154 +38,13 @@
38
  },
39
  {
40
  "cell_type": "code",
41
- "execution_count": 10,
42
  "id": "8eda394f",
43
  "metadata": {},
44
- "outputs": [
45
- {
46
- "name": "stdout",
47
- "output_type": "stream",
48
- "text": [
49
- "Running on local URL: http://127.0.0.1:7860\n",
50
- "\n",
51
- "To create a public link, set `share=True` in `launch()`.\n"
52
- ]
53
- },
54
- {
55
- "data": {
56
- "text/html": [
57
- "<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
58
- ],
59
- "text/plain": [
60
- "<IPython.core.display.HTML object>"
61
- ]
62
- },
63
- "metadata": {},
64
- "output_type": "display_data"
65
- },
66
- {
67
- "data": {
68
- "text/plain": []
69
- },
70
- "execution_count": 10,
71
- "metadata": {},
72
- "output_type": "execute_result"
73
- },
74
- {
75
- "data": {
76
- "text/html": [
77
- "\n",
78
- "<style>\n",
79
- " /* Turns off some styling */\n",
80
- " progress {\n",
81
- " /* gets rid of default border in Firefox and Opera. */\n",
82
- " border: none;\n",
83
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
84
- " background-size: auto;\n",
85
- " }\n",
86
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
87
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
88
- " }\n",
89
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
90
- " background: #F44336;\n",
91
- " }\n",
92
- "</style>\n"
93
- ],
94
- "text/plain": [
95
- "<IPython.core.display.HTML object>"
96
- ]
97
- },
98
- "metadata": {},
99
- "output_type": "display_data"
100
- },
101
- {
102
- "data": {
103
- "text/html": [],
104
- "text/plain": [
105
- "<IPython.core.display.HTML object>"
106
- ]
107
- },
108
- "metadata": {},
109
- "output_type": "display_data"
110
- },
111
- {
112
- "data": {
113
- "text/html": [
114
- "\n",
115
- "<style>\n",
116
- " /* Turns off some styling */\n",
117
- " progress {\n",
118
- " /* gets rid of default border in Firefox and Opera. */\n",
119
- " border: none;\n",
120
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
121
- " background-size: auto;\n",
122
- " }\n",
123
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
124
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
125
- " }\n",
126
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
127
- " background: #F44336;\n",
128
- " }\n",
129
- "</style>\n"
130
- ],
131
- "text/plain": [
132
- "<IPython.core.display.HTML object>"
133
- ]
134
- },
135
- "metadata": {},
136
- "output_type": "display_data"
137
- },
138
- {
139
- "data": {
140
- "text/html": [],
141
- "text/plain": [
142
- "<IPython.core.display.HTML object>"
143
- ]
144
- },
145
- "metadata": {},
146
- "output_type": "display_data"
147
- },
148
- {
149
- "data": {
150
- "text/html": [
151
- "\n",
152
- "<style>\n",
153
- " /* Turns off some styling */\n",
154
- " progress {\n",
155
- " /* gets rid of default border in Firefox and Opera. */\n",
156
- " border: none;\n",
157
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
158
- " background-size: auto;\n",
159
- " }\n",
160
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
161
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
162
- " }\n",
163
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
164
- " background: #F44336;\n",
165
- " }\n",
166
- "</style>\n"
167
- ],
168
- "text/plain": [
169
- "<IPython.core.display.HTML object>"
170
- ]
171
- },
172
- "metadata": {},
173
- "output_type": "display_data"
174
- },
175
- {
176
- "data": {
177
- "text/html": [],
178
- "text/plain": [
179
- "<IPython.core.display.HTML object>"
180
- ]
181
- },
182
- "metadata": {},
183
- "output_type": "display_data"
184
- }
185
- ],
186
  "source": [
187
  "intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)\n",
188
- "intf.launch(inline=True)"
189
  ]
190
  },
191
  {
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": null,
6
  "id": "178f75ea",
7
  "metadata": {},
8
  "outputs": [],
 
26
  },
27
  {
28
  "cell_type": "code",
29
+ "execution_count": null,
30
  "id": "45599222",
31
  "metadata": {},
32
  "outputs": [],
 
38
  },
39
  {
40
  "cell_type": "code",
41
+ "execution_count": null,
42
  "id": "8eda394f",
43
  "metadata": {},
44
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  "source": [
46
  "intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)\n",
47
+ "intf.launch(inline=False)"
48
  ]
49
  },
50
  {
.model.pkl.icloud DELETED
Binary file (159 Bytes)
 
Cats and Dogs classifier test notebook.ipynb CHANGED
@@ -26,7 +26,7 @@
26
  },
27
  {
28
  "cell_type": "code",
29
- "execution_count": 9,
30
  "id": "45599222",
31
  "metadata": {},
32
  "outputs": [],
@@ -38,7 +38,7 @@
38
  },
39
  {
40
  "cell_type": "code",
41
- "execution_count": 10,
42
  "id": "8eda394f",
43
  "metadata": {},
44
  "outputs": [
@@ -46,7 +46,7 @@
46
  "name": "stdout",
47
  "output_type": "stream",
48
  "text": [
49
- "Running on local URL: http://127.0.0.1:7860\n",
50
  "\n",
51
  "To create a public link, set `share=True` in `launch()`.\n"
52
  ]
@@ -54,7 +54,7 @@
54
  {
55
  "data": {
56
  "text/html": [
57
- "<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
58
  ],
59
  "text/plain": [
60
  "<IPython.core.display.HTML object>"
@@ -67,120 +67,9 @@
67
  "data": {
68
  "text/plain": []
69
  },
70
- "execution_count": 10,
71
  "metadata": {},
72
  "output_type": "execute_result"
73
- },
74
- {
75
- "data": {
76
- "text/html": [
77
- "\n",
78
- "<style>\n",
79
- " /* Turns off some styling */\n",
80
- " progress {\n",
81
- " /* gets rid of default border in Firefox and Opera. */\n",
82
- " border: none;\n",
83
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
84
- " background-size: auto;\n",
85
- " }\n",
86
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
87
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
88
- " }\n",
89
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
90
- " background: #F44336;\n",
91
- " }\n",
92
- "</style>\n"
93
- ],
94
- "text/plain": [
95
- "<IPython.core.display.HTML object>"
96
- ]
97
- },
98
- "metadata": {},
99
- "output_type": "display_data"
100
- },
101
- {
102
- "data": {
103
- "text/html": [],
104
- "text/plain": [
105
- "<IPython.core.display.HTML object>"
106
- ]
107
- },
108
- "metadata": {},
109
- "output_type": "display_data"
110
- },
111
- {
112
- "data": {
113
- "text/html": [
114
- "\n",
115
- "<style>\n",
116
- " /* Turns off some styling */\n",
117
- " progress {\n",
118
- " /* gets rid of default border in Firefox and Opera. */\n",
119
- " border: none;\n",
120
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
121
- " background-size: auto;\n",
122
- " }\n",
123
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
124
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
125
- " }\n",
126
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
127
- " background: #F44336;\n",
128
- " }\n",
129
- "</style>\n"
130
- ],
131
- "text/plain": [
132
- "<IPython.core.display.HTML object>"
133
- ]
134
- },
135
- "metadata": {},
136
- "output_type": "display_data"
137
- },
138
- {
139
- "data": {
140
- "text/html": [],
141
- "text/plain": [
142
- "<IPython.core.display.HTML object>"
143
- ]
144
- },
145
- "metadata": {},
146
- "output_type": "display_data"
147
- },
148
- {
149
- "data": {
150
- "text/html": [
151
- "\n",
152
- "<style>\n",
153
- " /* Turns off some styling */\n",
154
- " progress {\n",
155
- " /* gets rid of default border in Firefox and Opera. */\n",
156
- " border: none;\n",
157
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
158
- " background-size: auto;\n",
159
- " }\n",
160
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
161
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
162
- " }\n",
163
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
164
- " background: #F44336;\n",
165
- " }\n",
166
- "</style>\n"
167
- ],
168
- "text/plain": [
169
- "<IPython.core.display.HTML object>"
170
- ]
171
- },
172
- "metadata": {},
173
- "output_type": "display_data"
174
- },
175
- {
176
- "data": {
177
- "text/html": [],
178
- "text/plain": [
179
- "<IPython.core.display.HTML object>"
180
- ]
181
- },
182
- "metadata": {},
183
- "output_type": "display_data"
184
  }
185
  ],
186
  "source": [
 
26
  },
27
  {
28
  "cell_type": "code",
29
+ "execution_count": 4,
30
  "id": "45599222",
31
  "metadata": {},
32
  "outputs": [],
 
38
  },
39
  {
40
  "cell_type": "code",
41
+ "execution_count": 6,
42
  "id": "8eda394f",
43
  "metadata": {},
44
  "outputs": [
 
46
  "name": "stdout",
47
  "output_type": "stream",
48
  "text": [
49
+ "Running on local URL: http://127.0.0.1:7861\n",
50
  "\n",
51
  "To create a public link, set `share=True` in `launch()`.\n"
52
  ]
 
54
  {
55
  "data": {
56
  "text/html": [
57
+ "<div><iframe src=\"http://127.0.0.1:7861/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
58
  ],
59
  "text/plain": [
60
  "<IPython.core.display.HTML object>"
 
67
  "data": {
68
  "text/plain": []
69
  },
70
+ "execution_count": 6,
71
  "metadata": {},
72
  "output_type": "execute_result"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
  ],
75
  "source": [
model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:735aa4051f1f09d113cd1dd1a4b4dd251c6797e06527a85d97977767887be232
3
+ size 47063121