this
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from transformers import pipeline
|
|
| 12 |
# xyz = {"This is new code678"}
|
| 13 |
# col.insert_one(xyz)
|
| 14 |
|
| 15 |
-
token_classifier = pipeline(model="
|
| 16 |
if ner := st.chat_input("query "):
|
| 17 |
ans = token_classifier(ner)
|
| 18 |
with st.chat_message("User"):
|
|
|
|
| 12 |
# xyz = {"This is new code678"}
|
| 13 |
# col.insert_one(xyz)
|
| 14 |
|
| 15 |
+
token_classifier = pipeline(model="dslim/bert-base-NER", aggregation_strategy="simple")
|
| 16 |
if ner := st.chat_input("query "):
|
| 17 |
ans = token_classifier(ner)
|
| 18 |
with st.chat_message("User"):
|