Spaces:
Sleeping
Sleeping
Krishs21 commited on
Commit ·
049e8fd
1
Parent(s): b7114b7
code change
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def predict(image):
|
|
| 34 |
iface = gr.Interface(
|
| 35 |
fn=predict,
|
| 36 |
inputs=gr.Image(type="pil"), # Accepts image input
|
| 37 |
-
outputs=[gr.Label(num_top_classes=1), gr.
|
| 38 |
live=True, # Optional: updates the result as soon as the user uploads an image
|
| 39 |
title="Human vs Non-Human Classifier",
|
| 40 |
description="Upload an image to classify whether it's a human or non-human."
|
|
|
|
| 34 |
iface = gr.Interface(
|
| 35 |
fn=predict,
|
| 36 |
inputs=gr.Image(type="pil"), # Accepts image input
|
| 37 |
+
outputs=[gr.Label(num_top_classes=1), gr.Textbox()], # Displays result and confidence
|
| 38 |
live=True, # Optional: updates the result as soon as the user uploads an image
|
| 39 |
title="Human vs Non-Human Classifier",
|
| 40 |
description="Upload an image to classify whether it's a human or non-human."
|