Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ def predict_jellyfish_type(uploaded_file):
|
|
26 |
# Define the Gradio interface
|
27 |
iface = gr.Interface(
|
28 |
fn=predict_jellyfish_type, # Function to process the input
|
29 |
-
inputs=
|
30 |
-
outputs=
|
31 |
title="Jellyfish Classifier", # Title of the interface
|
32 |
examples=["images/barrel_jellyfish.jpeg", "images/blue_jellyfish.jpeg", "images/compass_jellyfish.jpeg", "images/lions_mane_jellyfish.jpeg", "images/mauve_stinger_jellyfish.jpeg", "images/Moon_jellyfish.jpeg"],
|
33 |
description="Upload a picture of a Jellyfish (barrel Gefährlichkeit: Niedrig, blue Gefährlichkeit: Moderat, compass Gefährlichkeit: Moderat, lions mane Gefährlichkeit: Hoch, mauve stinger Gefährlichkeit: Moderat bis Hoch, Moon Gefährlichkeit: Niedrig) " # Description of the interface
|
|
|
26 |
# Define the Gradio interface
|
27 |
iface = gr.Interface(
|
28 |
fn=predict_jellyfish_type, # Function to process the input
|
29 |
+
inputs=gr.File(label="Upload File"), # File upload widget
|
30 |
+
outputs="text", # Output type
|
31 |
title="Jellyfish Classifier", # Title of the interface
|
32 |
examples=["images/barrel_jellyfish.jpeg", "images/blue_jellyfish.jpeg", "images/compass_jellyfish.jpeg", "images/lions_mane_jellyfish.jpeg", "images/mauve_stinger_jellyfish.jpeg", "images/Moon_jellyfish.jpeg"],
|
33 |
description="Upload a picture of a Jellyfish (barrel Gefährlichkeit: Niedrig, blue Gefährlichkeit: Moderat, compass Gefährlichkeit: Moderat, lions mane Gefährlichkeit: Hoch, mauve stinger Gefährlichkeit: Moderat bis Hoch, Moon Gefährlichkeit: Niedrig) " # Description of the interface
|