shivansh-ka commited on
Commit
95f2cc8
·
1 Parent(s): 3b47abb

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +4 -3
app2.py CHANGED
@@ -34,9 +34,10 @@ with tab1:
34
  st.subheader("Prediction")
35
  with st.form("comment_form", clear_on_submit=True):
36
  comment = st.text_area(label="Enter your comment")
37
- button = st.form_submit_button(label="Submit")
38
  if button:
39
- single_predict(comment)
 
40
 
41
  with tab2:
42
  st.subheader("Batch Prediction")
@@ -45,7 +46,7 @@ with tab2:
45
  if csv_file is not None:
46
  csv = batch_predict(csv_file)
47
  st.download_button(
48
- label="Predict and Download",
49
  data=csv,
50
  file_name='prediction.csv',
51
  mime='text/csv',
 
34
  st.subheader("Prediction")
35
  with st.form("comment_form", clear_on_submit=True):
36
  comment = st.text_area(label="Enter your comment")
37
+ button = st.form_submit_button(label="Predict")
38
  if button:
39
+ with st.spinner('Please Wait!!! Prediction in process....'):
40
+ single_predict(comment)
41
 
42
  with tab2:
43
  st.subheader("Batch Prediction")
 
46
  if csv_file is not None:
47
  csv = batch_predict(csv_file)
48
  st.download_button(
49
+ label="Download",
50
  data=csv,
51
  file_name='prediction.csv',
52
  mime='text/csv',