Spaces:
Sleeping
Sleeping
Rename app.py to ap.py
Browse files- 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 β
'} #π«
|