Spaces:
Running
Running
Update ui.py
Browse files
ui.py
CHANGED
@@ -15,7 +15,7 @@ def Target_Identification(userinput):
|
|
15 |
model = GLiNER.from_pretrained("Ihor/gliner-biomed-bi-small-v1.0")
|
16 |
labels = ["Protein"]
|
17 |
|
18 |
-
entities = model.predict_entities(
|
19 |
|
20 |
|
21 |
result={}
|
|
|
15 |
model = GLiNER.from_pretrained("Ihor/gliner-biomed-bi-small-v1.0")
|
16 |
labels = ["Protein"]
|
17 |
|
18 |
+
entities = model.predict_entities(userinput, labels, threshold=0.5)
|
19 |
|
20 |
|
21 |
result={}
|