Spaces:
Sleeping
Sleeping
Update financial_analyst.py
Browse files- financial_analyst.py +2 -0
financial_analyst.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import os
|
| 2 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification
|
| 3 |
import gradio as gr
|
|
|
|
|
|
|
| 4 |
import spacy
|
| 5 |
nlp = spacy.load('en_core_web_sm')
|
| 6 |
nlp.add_pipe('sentencizer')
|
|
|
|
| 1 |
import os
|
| 2 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification
|
| 3 |
import gradio as gr
|
| 4 |
+
import spacy.cli
|
| 5 |
+
spacy.cli.download("en_core_web_sm")
|
| 6 |
import spacy
|
| 7 |
nlp = spacy.load('en_core_web_sm')
|
| 8 |
nlp.add_pipe('sentencizer')
|