KrishGoyani commited on
Commit
3be6673
·
verified ·
1 Parent(s): 48bdf6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -36,6 +36,10 @@ def pdf2text(file_path):
36
 
37
  def ner(text, labels, threshold) :
38
  labels = labels.split(",")
 
 
 
 
39
  return {
40
  "text": text,
41
  "entities": [
 
36
 
37
  def ner(text, labels, threshold) :
38
  labels = labels.split(",")
39
+ labels = [label.strip() for label in labels]
40
+ print(labels)
41
+
42
+
43
  return {
44
  "text": text,
45
  "entities": [