IJAB commited on
Commit
3e9a3d2
1 Parent(s): 25ad524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,5 +13,5 @@ text_input = st.text_input("Enter some text:")
13
  # Run NER on user input
14
  if text_input:
15
  results = ner_model(text_input)
16
- for result in results.ents:
17
  st.write(f"{result['word']}: {result['entity']}")
 
13
  # Run NER on user input
14
  if text_input:
15
  results = ner_model(text_input)
16
+ for result in results:
17
  st.write(f"{result['word']}: {result['entity']}")