Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,10 +60,18 @@ examples = ["NoMask.jpg",
|
|
| 60 |
|
| 61 |
title = "Mask Classifier"
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
# Single Out Interface
|
| 64 |
single_out = gr.Interface(
|
| 65 |
fn=predict_single_out,
|
| 66 |
-
inputs=
|
| 67 |
outputs=label_singleOut,
|
| 68 |
examples=examples,
|
| 69 |
title="Single Output Mask Classifier",
|
|
@@ -75,7 +83,7 @@ with single_out:
|
|
| 75 |
# Multi Out Interface
|
| 76 |
multi_out = gr.Interface(
|
| 77 |
fn=predict_multi_out,
|
| 78 |
-
inputs=
|
| 79 |
outputs=[label_mask, label_manufacturer, label_maskType, label_ventedType],
|
| 80 |
examples=examples,
|
| 81 |
title="Multi Output Mask Classifier",
|
|
|
|
| 60 |
|
| 61 |
title = "Mask Classifier"
|
| 62 |
|
| 63 |
+
image_single_out = gr.Image(type="filepath",
|
| 64 |
+
height=400,
|
| 65 |
+
sources=['upload', 'clipboard'])
|
| 66 |
+
|
| 67 |
+
image_multi_out = gr.Image(type="filepath",
|
| 68 |
+
height=400,
|
| 69 |
+
sources=['upload', 'clipboard'])
|
| 70 |
+
|
| 71 |
# Single Out Interface
|
| 72 |
single_out = gr.Interface(
|
| 73 |
fn=predict_single_out,
|
| 74 |
+
inputs=image_single_out,
|
| 75 |
outputs=label_singleOut,
|
| 76 |
examples=examples,
|
| 77 |
title="Single Output Mask Classifier",
|
|
|
|
| 83 |
# Multi Out Interface
|
| 84 |
multi_out = gr.Interface(
|
| 85 |
fn=predict_multi_out,
|
| 86 |
+
inputs=image_multi_out,
|
| 87 |
outputs=[label_mask, label_manufacturer, label_maskType, label_ventedType],
|
| 88 |
examples=examples,
|
| 89 |
title="Multi Output Mask Classifier",
|