SoDehghan commited on
Commit
ffc2586
β€’
1 Parent(s): e969b01

Rename app.py to ap.py

Browse files
Files changed (1) hide show
  1. app.py β†’ ap.py +1 -1
app.py β†’ ap.py RENAMED
@@ -25,8 +25,8 @@ st.subheader(header_tr)
25
 
26
  tr_input = st.text_area("Enter your text here:", height=50, key="tr_input") #height=30
27
  if st.button("Click for predictions!", key="tr_predict"):
 
28
  with st.spinner('Generating predictions...'):
29
- st.empty()
30
  result_tr = sentiment_pipeline_tr(tr_input)
31
  sentiment_tr = result_tr[0]["label"]
32
  label_dict = {'LABEL_1': 'Hate ❌ ', 'LABEL_0': 'Non-hate βœ… '} #🚫
 
25
 
26
  tr_input = st.text_area("Enter your text here:", height=50, key="tr_input") #height=30
27
  if st.button("Click for predictions!", key="tr_predict"):
28
+ st.write(" ")
29
  with st.spinner('Generating predictions...'):
 
30
  result_tr = sentiment_pipeline_tr(tr_input)
31
  sentiment_tr = result_tr[0]["label"]
32
  label_dict = {'LABEL_1': 'Hate ❌ ', 'LABEL_0': 'Non-hate βœ… '} #🚫