Spaces:
Build error
Build error
Try small spacy instead of large to see if this fixes the issue
Browse files
app.py
CHANGED
|
@@ -3,6 +3,8 @@ from typing import AnyStr
|
|
| 3 |
# import tensorflow_hub as hub
|
| 4 |
|
| 5 |
import itertools
|
|
|
|
|
|
|
| 6 |
import streamlit as st
|
| 7 |
import en_core_web_lg
|
| 8 |
|
|
@@ -303,7 +305,7 @@ sentence_embedding_model = get_sentence_embedding_model()
|
|
| 303 |
# tagger = get_flair_tagger()
|
| 304 |
ner_model = get_transformer_pipeline()
|
| 305 |
#nlp = get_spacy()
|
| 306 |
-
nlp =
|
| 307 |
|
| 308 |
# GENERATING SUMMARIES PART
|
| 309 |
st.header("Generating summaries")
|
|
|
|
| 3 |
# import tensorflow_hub as hub
|
| 4 |
|
| 5 |
import itertools
|
| 6 |
+
|
| 7 |
+
import en_core_web_sm
|
| 8 |
import streamlit as st
|
| 9 |
import en_core_web_lg
|
| 10 |
|
|
|
|
| 305 |
# tagger = get_flair_tagger()
|
| 306 |
ner_model = get_transformer_pipeline()
|
| 307 |
#nlp = get_spacy()
|
| 308 |
+
nlp = en_core_web_sm.load()
|
| 309 |
|
| 310 |
# GENERATING SUMMARIES PART
|
| 311 |
st.header("Generating summaries")
|