Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ import yake
|
|
5 |
from keyphrase_vectorizers import KeyphraseCountVectorizer
|
6 |
|
7 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True, show_spinner=True)
|
8 |
-
|
9 |
#model = KeyBERT("google/bigbird-pegasus-large-bigpatent")
|
10 |
#return model
|
11 |
|
12 |
-
|
13 |
st.title("Patent Text Extractor")
|
14 |
placeholder = st.empty()
|
15 |
text_input = placeholder.text_area("Paste or write text", height=300)
|
|
|
5 |
from keyphrase_vectorizers import KeyphraseCountVectorizer
|
6 |
|
7 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True, show_spinner=True)
|
8 |
+
def load_model():
|
9 |
#model = KeyBERT("google/bigbird-pegasus-large-bigpatent")
|
10 |
#return model
|
11 |
|
12 |
+
model = load_model()
|
13 |
st.title("Patent Text Extractor")
|
14 |
placeholder = st.empty()
|
15 |
text_input = placeholder.text_area("Paste or write text", height=300)
|