Spaces:
Runtime error
Runtime error
CesarLeblanc
commited on
Commit
•
3c63477
1
Parent(s):
728f964
Update app.py
Browse files
app.py
CHANGED
@@ -122,11 +122,8 @@ def masking(text):
|
|
122 |
best_prediction = species
|
123 |
best_position = len(text.split(', '))
|
124 |
|
125 |
-
|
126 |
-
|
127 |
-
new_species = pred['token_str']
|
128 |
-
text = f"The most likely missing species in position {best_position} is: {best_species}."
|
129 |
-
image = return_species_image(new_species)
|
130 |
return text, image
|
131 |
|
132 |
with gr.Blocks() as demo:
|
|
|
122 |
best_prediction = species
|
123 |
best_position = len(text.split(', '))
|
124 |
|
125 |
+
text = f"The most likely missing species in position {best_position} is: {best_prediction}."
|
126 |
+
image = return_species_image(best_prediction)
|
|
|
|
|
|
|
127 |
return text, image
|
128 |
|
129 |
with gr.Blocks() as demo:
|