Paula Leonova
commited on
Commit
·
e480bed
1
Parent(s):
92c16d7
Fix font size
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ ex_long_text = example_long_text_load()
|
|
18 |
|
19 |
|
20 |
# if __name__ == '__main__':
|
21 |
-
st.
|
22 |
st.write("This app summarizes and then classifies your long text with multiple labels.")
|
23 |
st.write("__Inputs__: User enters their own custom text and labels.")
|
24 |
st.write("__Outputs__: A summary of the text, likelihood percentages for each label and a downloadable csv of the results. \
|
@@ -37,6 +37,7 @@ with st.form(key='my_form'):
|
|
37 |
('Yes', 'No')
|
38 |
)
|
39 |
|
|
|
40 |
labels = st.text_input('Enter possible topic labels, which can be either keywords and/or general themes (comma-separated):',ex_labels, max_chars=1000)
|
41 |
labels = list(set([x.strip() for x in labels.strip().split(',') if len(x.strip()) > 0]))
|
42 |
|
|
|
18 |
|
19 |
|
20 |
# if __name__ == '__main__':
|
21 |
+
st.markdown("### Long Text Summarization & Multi-Label Classification")
|
22 |
st.write("This app summarizes and then classifies your long text with multiple labels.")
|
23 |
st.write("__Inputs__: User enters their own custom text and labels.")
|
24 |
st.write("__Outputs__: A summary of the text, likelihood percentages for each label and a downloadable csv of the results. \
|
|
|
37 |
('Yes', 'No')
|
38 |
)
|
39 |
|
40 |
+
# labels = st.text_input('Enter possible topic labels, which can be either keywords and/or general themes (comma-separated). The output will be the likelihood that these labels represent the text.:',ex_labels, max_chars=1000)
|
41 |
labels = st.text_input('Enter possible topic labels, which can be either keywords and/or general themes (comma-separated):',ex_labels, max_chars=1000)
|
42 |
labels = list(set([x.strip() for x in labels.strip().split(',') if len(x.strip()) > 0]))
|
43 |
|