Spaces:
Runtime error
Runtime error
DanyaalMajid
commited on
Commit
·
2fe2a41
1
Parent(s):
472673f
Update app.py
Browse files
app.py
CHANGED
@@ -70,8 +70,8 @@ def main():
|
|
70 |
data = named_entity_classifier(user_text)
|
71 |
|
72 |
# Extract and display data
|
73 |
-
for
|
74 |
-
for entry in
|
75 |
entity_group = entry["entity_group"]
|
76 |
score = entry["score"]
|
77 |
word = entry["word"]
|
|
|
70 |
data = named_entity_classifier(user_text)
|
71 |
|
72 |
# Extract and display data
|
73 |
+
for labels in data:
|
74 |
+
for entry in labels:
|
75 |
entity_group = entry["entity_group"]
|
76 |
score = entry["score"]
|
77 |
word = entry["word"]
|