Spaces:
Runtime error
Runtime error
update code
Browse files- .ipynb_checkpoints/app-checkpoint.py +3 -5
- app.py +3 -5
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -12,13 +12,11 @@ if st.button('Click for predictions!'):
|
|
12 |
|
13 |
result = get_single_prediction(feedback)
|
14 |
|
15 |
-
st.success(f'Your text has been predicted to fall under the following topics: {result[:-1]}. The sentiment of this text is {result[-1]}.')
|
16 |
|
17 |
-
st.
|
18 |
-
st.text("")
|
19 |
st.subheader('Or... Upload a csv file if you have many texts')
|
20 |
-
st.
|
21 |
-
st.text("")
|
22 |
|
23 |
uploaded_file = st.file_uploader("Please upload a csv file with only 1 column of texts.")
|
24 |
|
|
|
12 |
|
13 |
result = get_single_prediction(feedback)
|
14 |
|
15 |
+
st.success(f'Your text has been predicted to fall under the following topics: {result[:-1]}. \n The sentiment of this text is {result[-1]}.')
|
16 |
|
17 |
+
st.write("\n")
|
|
|
18 |
st.subheader('Or... Upload a csv file if you have many texts')
|
19 |
+
st.write("\n")
|
|
|
20 |
|
21 |
uploaded_file = st.file_uploader("Please upload a csv file with only 1 column of texts.")
|
22 |
|
app.py
CHANGED
@@ -12,13 +12,11 @@ if st.button('Click for predictions!'):
|
|
12 |
|
13 |
result = get_single_prediction(feedback)
|
14 |
|
15 |
-
st.success(f'Your text has been predicted to fall under the following topics: {result[:-1]}. The sentiment of this text is {result[-1]}.')
|
16 |
|
17 |
-
st.
|
18 |
-
st.text("")
|
19 |
st.subheader('Or... Upload a csv file if you have many texts')
|
20 |
-
st.
|
21 |
-
st.text("")
|
22 |
|
23 |
uploaded_file = st.file_uploader("Please upload a csv file with only 1 column of texts.")
|
24 |
|
|
|
12 |
|
13 |
result = get_single_prediction(feedback)
|
14 |
|
15 |
+
st.success(f'Your text has been predicted to fall under the following topics: {result[:-1]}. \n The sentiment of this text is {result[-1]}.')
|
16 |
|
17 |
+
st.write("\n")
|
|
|
18 |
st.subheader('Or... Upload a csv file if you have many texts')
|
19 |
+
st.write("\n")
|
|
|
20 |
|
21 |
uploaded_file = st.file_uploader("Please upload a csv file with only 1 column of texts.")
|
22 |
|