Junaidb commited on
Commit
bebef8d
·
verified ·
1 Parent(s): f1aa6aa

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +1 -1
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(text, labels, threshold=0.5)
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={}