Spaces:
Running
Running
cesar.leblanc
commited on
Commit
·
c82104c
1
Parent(s):
7145ecb
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def gbif_normalization(text):
|
|
| 62 |
text = text.lower()
|
| 63 |
return text
|
| 64 |
|
| 65 |
-
def classification(text):
|
| 66 |
text = gbif_normalization(text)
|
| 67 |
result = classification_model(text)
|
| 68 |
habitat_label = result[0]['label']
|
|
|
|
| 62 |
text = text.lower()
|
| 63 |
return text
|
| 64 |
|
| 65 |
+
def classification(text, k):
|
| 66 |
text = gbif_normalization(text)
|
| 67 |
result = classification_model(text)
|
| 68 |
habitat_label = result[0]['label']
|