Spaces:
Running
Running
CesarLeblanc
commited on
Commit
•
3fe5707
1
Parent(s):
20742e4
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import requests
|
|
5 |
from bs4 import BeautifulSoup
|
6 |
import random
|
7 |
|
8 |
-
classification_model = pipeline("text-classification", model="CesarLeblanc/
|
9 |
-
mask_model = pipeline("fill-mask", model="CesarLeblanc/
|
10 |
|
11 |
-
dataset = load_dataset("CesarLeblanc/
|
12 |
|
13 |
def return_text(habitat_label, habitat_score, confidence):
|
14 |
if habitat_score*100 > confidence:
|
|
|
5 |
from bs4 import BeautifulSoup
|
6 |
import random
|
7 |
|
8 |
+
classification_model = pipeline("text-classification", model="CesarLeblanc/plantbert_text_classification_model")
|
9 |
+
mask_model = pipeline("fill-mask", model="CesarLeblanc/plantbert_fill_mask_model")
|
10 |
|
11 |
+
dataset = load_dataset("CesarLeblanc/plantbert_text_classification_dataset")
|
12 |
|
13 |
def return_text(habitat_label, habitat_score, confidence):
|
14 |
if habitat_score*100 > confidence:
|