Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def predict(input_image:Image.Image):
|
|
71 |
}
|
72 |
return confidences, face_image_to_plot
|
73 |
|
74 |
-
|
75 |
example = examples[8]
|
76 |
example_img = example['path']
|
77 |
example_label = example['label']
|
@@ -88,7 +88,7 @@ def predict(input_image:Image.Image):
|
|
88 |
print()
|
89 |
|
90 |
|
91 |
-
|
92 |
fn=predict,
|
93 |
inputs=gr.inputs.Image(label="Input Image", type="pil"),
|
94 |
outputs=[
|
|
|
71 |
}
|
72 |
return confidences, face_image_to_plot
|
73 |
|
74 |
+
for i in range(10):
|
75 |
example = examples[8]
|
76 |
example_img = example['path']
|
77 |
example_label = example['label']
|
|
|
88 |
print()
|
89 |
|
90 |
|
91 |
+
interface = gr.Interface(
|
92 |
fn=predict,
|
93 |
inputs=gr.inputs.Image(label="Input Image", type="pil"),
|
94 |
outputs=[
|