zeimoto commited on
Commit
4832d73
1 Parent(s): 0d66cb3

fixed dynamic labels

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def transcription(audio):
21
 
22
  def named_entity_recognition(req: NER_Request):
23
  ner = init_model_ner()
24
- result = get_entity_results(entities_list=entity_labels_sample,
25
  model=ner,
26
  text=req.text)
27
  print('result:',result,type(result))
 
21
 
22
  def named_entity_recognition(req: NER_Request):
23
  ner = init_model_ner()
24
+ result = get_entity_results(entities_list=req.entities,#entity_labels_sample,
25
  model=ner,
26
  text=req.text)
27
  print('result:',result,type(result))