Spaces:
Runtime error
Runtime error
fix blogpost site
Browse files- .ipynb_checkpoints/app-checkpoint.py +2 -2
- app.py +2 -2
- gradio_queue.db +0 -0
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -11,7 +11,7 @@ def predict(img):
|
|
11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
12 |
|
13 |
import os
|
14 |
-
for root, dirs, files in os.walk(r'
|
15 |
for filename in files:
|
16 |
print(filename)
|
17 |
|
@@ -19,7 +19,7 @@ title = "Pet Breed Classifier"
|
|
19 |
description = "A pet breed classifier trained on the Oxford Pets dataset"
|
20 |
interpretation='default'
|
21 |
examples = ["sample_images/"+file for file in files]
|
22 |
-
article="<p style='text-align: center'><a href='https://dicksonneoh.com' target='_blank'>Blog post</a></p>"
|
23 |
enable_queue=True
|
24 |
|
25 |
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
|
|
11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
12 |
|
13 |
import os
|
14 |
+
for root, dirs, files in os.walk(r'sample_images/'):
|
15 |
for filename in files:
|
16 |
print(filename)
|
17 |
|
|
|
19 |
description = "A pet breed classifier trained on the Oxford Pets dataset"
|
20 |
interpretation='default'
|
21 |
examples = ["sample_images/"+file for file in files]
|
22 |
+
article="<p style='text-align: center'><a href='https://dicksonneoh.com/pet-classifier/' target='_blank'>Blog post</a></p>"
|
23 |
enable_queue=True
|
24 |
|
25 |
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
app.py
CHANGED
@@ -11,7 +11,7 @@ def predict(img):
|
|
11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
12 |
|
13 |
import os
|
14 |
-
for root, dirs, files in os.walk(r'
|
15 |
for filename in files:
|
16 |
print(filename)
|
17 |
|
@@ -19,7 +19,7 @@ title = "Pet Breed Classifier"
|
|
19 |
description = "A pet breed classifier trained on the Oxford Pets dataset"
|
20 |
interpretation='default'
|
21 |
examples = ["sample_images/"+file for file in files]
|
22 |
-
article="<p style='text-align: center'><a href='https://dicksonneoh.com' target='_blank'>Blog post</a></p>"
|
23 |
enable_queue=True
|
24 |
|
25 |
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
|
|
11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
12 |
|
13 |
import os
|
14 |
+
for root, dirs, files in os.walk(r'sample_images/'):
|
15 |
for filename in files:
|
16 |
print(filename)
|
17 |
|
|
|
19 |
description = "A pet breed classifier trained on the Oxford Pets dataset"
|
20 |
interpretation='default'
|
21 |
examples = ["sample_images/"+file for file in files]
|
22 |
+
article="<p style='text-align: center'><a href='https://dicksonneoh.com/pet-classifier/' target='_blank'>Blog post</a></p>"
|
23 |
enable_queue=True
|
24 |
|
25 |
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
gradio_queue.db
CHANGED
Binary files a/gradio_queue.db and b/gradio_queue.db differ
|
|