Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,6 @@ def predict_biome(uploaded_file):
|
|
20 |
|
21 |
# Identify the most confident prediction
|
22 |
confidences = {labels[i]: np.round(float(prediction[0][i]), 2) for i in range(len(labels))}
|
23 |
-
|
24 |
return img, confidences
|
25 |
|
26 |
# Define the Gradio interface
|
@@ -29,7 +28,7 @@ iface = gr.Interface(
|
|
29 |
inputs=gr.File(label="Upload File"), # File upload widget
|
30 |
outputs=["image", "text"], # Output types for image and text
|
31 |
title="Minecraft Biomes Classifier", # Title of the interface
|
32 |
-
description="Upload a picture of a Fruit (preferably a Birch Forest, Cave, Cherry Grove, Dark Forest, Deep Dark, Desert, End, Forest, Jungle, Mushroom Fields, Nether, Ocean, Plains, Savanna, Swamp or Taiga) to see what
|
33 |
)
|
34 |
|
35 |
# Launch the interface
|
|
|
20 |
|
21 |
# Identify the most confident prediction
|
22 |
confidences = {labels[i]: np.round(float(prediction[0][i]), 2) for i in range(len(labels))}
|
|
|
23 |
return img, confidences
|
24 |
|
25 |
# Define the Gradio interface
|
|
|
28 |
inputs=gr.File(label="Upload File"), # File upload widget
|
29 |
outputs=["image", "text"], # Output types for image and text
|
30 |
title="Minecraft Biomes Classifier", # Title of the interface
|
31 |
+
description="Upload a picture of a Fruit (preferably a Birch Forest, Cave, Cherry Grove, Dark Forest, Deep Dark, Desert, End, Forest, Jungle, Mushroom Fields, Nether, Ocean, Plains, Savanna, Swamp or Taiga) to see what Biome it is and the models confidence level." # Description of the interface
|
32 |
)
|
33 |
|
34 |
# Launch the interface
|