Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ from transformers import pipeline
|
|
| 16 |
ner_pipeline = pipeline("ner", model="Beehzod/smart-finetuned-ner")
|
| 17 |
|
| 18 |
# Example predictions
|
| 19 |
-
text =
|
| 20 |
results = ner_pipeline(text)
|
| 21 |
|
| 22 |
for entity in results:
|
|
|
|
| 16 |
ner_pipeline = pipeline("ner", model="Beehzod/smart-finetuned-ner")
|
| 17 |
|
| 18 |
# Example predictions
|
| 19 |
+
text = st.text_area('enter text: ')
|
| 20 |
results = ner_pipeline(text)
|
| 21 |
|
| 22 |
for entity in results:
|