Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def return_habitat_image(habitat_label, habitat_score, confidence):
|
|
| 34 |
return image
|
| 35 |
|
| 36 |
def return_species_image(species):
|
| 37 |
-
species = species
|
| 38 |
floraveg_url = f"https://floraveg.eu/taxon/overview/{species}"
|
| 39 |
response = requests.get(floraveg_url)
|
| 40 |
if response.status_code == 200:
|
|
|
|
| 34 |
return image
|
| 35 |
|
| 36 |
def return_species_image(species):
|
| 37 |
+
species = species.capitalize()
|
| 38 |
floraveg_url = f"https://floraveg.eu/taxon/overview/{species}"
|
| 39 |
response = requests.get(floraveg_url)
|
| 40 |
if response.status_code == 200:
|