Ajay Karthick Senthil Kumar commited on
Commit
03e584e
1 Parent(s): dffe4e5
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -35,13 +35,13 @@ def predict_ner(text):
35
  if entity != "":
36
  entities.append(entity[:-1])
37
 
38
- gradio.debug(f"inputs: {inputs}")
39
- gradio.debug(f"outputs: {outputs}")
40
- gradio.debug(f"predictions: {predictions}")
41
- gradio.debug(f"tokens: {tokens}")
42
- gradio.debug(f"new_tokens: {new_tokens}")
43
- gradio.debug(f"new_predictions: {new_predictions}")
44
- gradio.debug(f"entities: {entities}")
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