Spaces:
Runtime error
Runtime error
Ajay Karthick Senthil Kumar
commited on
Commit
•
03e584e
1
Parent(s):
dffe4e5
update
Browse files
app.py
CHANGED
@@ -35,13 +35,13 @@ def predict_ner(text):
|
|
35 |
if entity != "":
|
36 |
entities.append(entity[:-1])
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
return entities if entities else "No named entities found."
|
47 |
|
|
|
35 |
if entity != "":
|
36 |
entities.append(entity[:-1])
|
37 |
|
38 |
+
gr.debug(f"inputs: {inputs}")
|
39 |
+
gr.debug(f"outputs: {outputs}")
|
40 |
+
gr.debug(f"predictions: {predictions}")
|
41 |
+
gr.debug(f"tokens: {tokens}")
|
42 |
+
gr.debug(f"new_tokens: {new_tokens}")
|
43 |
+
gr.debug(f"new_predictions: {new_predictions}")
|
44 |
+
gr.debug(f"entities: {entities}")
|
45 |
|
46 |
return entities if entities else "No named entities found."
|
47 |
|