Spaces:
Runtime error
Runtime error
inclusive-ml
commited on
Commit
·
d98b60a
1
Parent(s):
d37d1de
ner only
Browse files
app.py
CHANGED
@@ -7,12 +7,8 @@ import numpy as np
|
|
7 |
st.set_page_config(page_title="NLP Prototype")
|
8 |
st.title("Natural Language Processing Prototype")
|
9 |
st.write("_This web application is intended for educational use, please do not upload any sensitive information._")
|
10 |
-
st.subheader("__Which natural language processing task would you like to try?__")
|
11 |
-
st.write("- __Sentiment Analysis:__ Identifying whether a piece of text has a positive or negative sentiment.")
|
12 |
st.write("- __Named Entity Recognition:__ Identifying all geopolitical entities, organizations, people, locations, or dates in a body of text.")
|
13 |
-
st.
|
14 |
-
st.write("- __Text Summarization:__ Condensing larger bodies of text into smaller bodies of text.")
|
15 |
-
option = st.selectbox('Please select from the list',('','Sentiment Analysis','Named Entity Recognition', 'Text Classification','Text Summarization'))
|
16 |
@st.cache(allow_output_mutation=True, show_spinner=False)
|
17 |
def Loading_Model_1():
|
18 |
sum2 = pipeline("summarization",framework="pt")
|
|
|
7 |
st.set_page_config(page_title="NLP Prototype")
|
8 |
st.title("Natural Language Processing Prototype")
|
9 |
st.write("_This web application is intended for educational use, please do not upload any sensitive information._")
|
|
|
|
|
10 |
st.write("- __Named Entity Recognition:__ Identifying all geopolitical entities, organizations, people, locations, or dates in a body of text.")
|
11 |
+
option = st.selectbox('Please select from the list',('','Named Entity Recognition'))
|
|
|
|
|
12 |
@st.cache(allow_output_mutation=True, show_spinner=False)
|
13 |
def Loading_Model_1():
|
14 |
sum2 = pipeline("summarization",framework="pt")
|