CesarLeblanc commited on
Commit
c8ce48e
1 Parent(s): 30051ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def text_classification(text):
14
  habitat_score = result[0]['score']
15
  formatted_output = f"This vegetation plot belongs to the habitat {habitat_label} with the probability {habitat_score*100:.2f}%"
16
  floraveg_url = f"https://floraveg.eu/habitat/overview/{habitat_label}"
17
- response = requests.get(url)
18
  if response.status_code == 200:
19
  soup = BeautifulSoup(response.text, 'html.parser')
20
  img_tag = soup.find('img', src=lambda x: x and x.startswith("https://files.ibot.cas.cz/cevs/images/syntaxa/thumbs/"))
 
14
  habitat_score = result[0]['score']
15
  formatted_output = f"This vegetation plot belongs to the habitat {habitat_label} with the probability {habitat_score*100:.2f}%"
16
  floraveg_url = f"https://floraveg.eu/habitat/overview/{habitat_label}"
17
+ response = requests.get(floraveg_url)
18
  if response.status_code == 200:
19
  soup = BeautifulSoup(response.text, 'html.parser')
20
  img_tag = soup.find('img', src=lambda x: x and x.startswith("https://files.ibot.cas.cz/cevs/images/syntaxa/thumbs/"))