danielcwq commited on
Commit
bbbecdf
·
1 Parent(s): e4a072e
Files changed (2) hide show
  1. Untitled.ipynb +9 -9
  2. app.py +1 -1
Untitled.ipynb CHANGED
@@ -3,7 +3,7 @@
3
  {
4
  "cell_type": "code",
5
  "execution_count": 2,
6
- "id": "88fabd58",
7
  "metadata": {},
8
  "outputs": [],
9
  "source": [
@@ -14,7 +14,7 @@
14
  {
15
  "cell_type": "code",
16
  "execution_count": 3,
17
- "id": "542249c0",
18
  "metadata": {},
19
  "outputs": [],
20
  "source": [
@@ -24,7 +24,7 @@
24
  {
25
  "cell_type": "code",
26
  "execution_count": 4,
27
- "id": "5c816758",
28
  "metadata": {},
29
  "outputs": [
30
  {
@@ -43,7 +43,7 @@
43
  {
44
  "cell_type": "code",
45
  "execution_count": 5,
46
- "id": "c77bbfc3",
47
  "metadata": {},
48
  "outputs": [],
49
  "source": [
@@ -53,7 +53,7 @@
53
  {
54
  "cell_type": "code",
55
  "execution_count": 6,
56
- "id": "f788af57",
57
  "metadata": {},
58
  "outputs": [],
59
  "source": [
@@ -63,7 +63,7 @@
63
  {
64
  "cell_type": "code",
65
  "execution_count": null,
66
- "id": "3bd5da90",
67
  "metadata": {},
68
  "outputs": [
69
  {
@@ -180,8 +180,8 @@
180
  "</table><p>\n",
181
  "\n",
182
  " <div>\n",
183
- " <progress value='50' class='' max='92' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
184
- " 54.35% [50/92 08:01&lt;06:44 0.3897]\n",
185
  " </div>\n",
186
  " "
187
  ],
@@ -209,7 +209,7 @@
209
  {
210
  "cell_type": "code",
211
  "execution_count": null,
212
- "id": "efa1f444",
213
  "metadata": {},
214
  "outputs": [],
215
  "source": []
 
3
  {
4
  "cell_type": "code",
5
  "execution_count": 2,
6
+ "id": "7ec1278b",
7
  "metadata": {},
8
  "outputs": [],
9
  "source": [
 
14
  {
15
  "cell_type": "code",
16
  "execution_count": 3,
17
+ "id": "e6b48302",
18
  "metadata": {},
19
  "outputs": [],
20
  "source": [
 
24
  {
25
  "cell_type": "code",
26
  "execution_count": 4,
27
+ "id": "4af2b248",
28
  "metadata": {},
29
  "outputs": [
30
  {
 
43
  {
44
  "cell_type": "code",
45
  "execution_count": 5,
46
+ "id": "9b33221c",
47
  "metadata": {},
48
  "outputs": [],
49
  "source": [
 
53
  {
54
  "cell_type": "code",
55
  "execution_count": 6,
56
+ "id": "59089808",
57
  "metadata": {},
58
  "outputs": [],
59
  "source": [
 
63
  {
64
  "cell_type": "code",
65
  "execution_count": null,
66
+ "id": "0f5c2587",
67
  "metadata": {},
68
  "outputs": [
69
  {
 
180
  "</table><p>\n",
181
  "\n",
182
  " <div>\n",
183
+ " <progress value='63' class='' max='92' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
184
+ " 68.48% [63/92 10:03&lt;04:37 0.2883]\n",
185
  " </div>\n",
186
  " "
187
  ],
 
209
  {
210
  "cell_type": "code",
211
  "execution_count": null,
212
+ "id": "05c39c1e",
213
  "metadata": {},
214
  "outputs": [],
215
  "source": []
app.py CHANGED
@@ -23,7 +23,7 @@ def classify_image(img):
23
 
24
  image = gr.inputs.Image(shape=(192, 192))
25
  label = gr.outputs.Label()
26
- examples = ['dog.jpg', 'cat.jpeg', 'ambiguous.jpg']
27
 
28
  intf = gr.Interface(fn=classify_image, inputs=image,
29
  outputs=label, examples=examples)
 
23
 
24
  image = gr.inputs.Image(shape=(192, 192))
25
  label = gr.outputs.Label()
26
+ examples = ['dog.jpg', 'cat.jpg', 'ambiguous.jpg']
27
 
28
  intf = gr.Interface(fn=classify_image, inputs=image,
29
  outputs=label, examples=examples)