hongaik commited on
Commit
c7563b2
1 Parent(s): 7fe3481

update code

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +3 -5
  2. 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.text("")
18
- st.text("")
19
  st.subheader('Or... Upload a csv file if you have many texts')
20
- st.text("")
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.text("")
18
- st.text("")
19
  st.subheader('Or... Upload a csv file if you have many texts')
20
- st.text("")
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