Spaces:
Running
Running
CesarLeblanc
commited on
Commit
•
621b193
1
Parent(s):
763f5b7
app.py
CHANGED
@@ -123,7 +123,7 @@ def masking(text, k):
|
|
123 |
text = f"The most likely missing species are {', '.join(best_predictions[:-1])} and {best_predictions[-1]} (positions {', '.join(map(str, best_positions[:-1]))} and {best_positions[-1]})."
|
124 |
text += f"\nThe completed vegetation plot is '{best_sentence}'."
|
125 |
text += f"\nSee an image of the most likely species (i.e., {best_predictions[0]}) below."
|
126 |
-
image = return_species_image(
|
127 |
return text, image
|
128 |
|
129 |
with gr.Blocks() as demo:
|
|
|
123 |
text = f"The most likely missing species are {', '.join(best_predictions[:-1])} and {best_predictions[-1]} (positions {', '.join(map(str, best_positions[:-1]))} and {best_positions[-1]})."
|
124 |
text += f"\nThe completed vegetation plot is '{best_sentence}'."
|
125 |
text += f"\nSee an image of the most likely species (i.e., {best_predictions[0]}) below."
|
126 |
+
image = return_species_image(best_predictions[0])
|
127 |
return text, image
|
128 |
|
129 |
with gr.Blocks() as demo:
|