Spaces:
Sleeping
Sleeping
Update models/hsd_tr.py
Browse files- models/hsd_tr.py +2 -2
models/hsd_tr.py
CHANGED
@@ -12,7 +12,7 @@ st.subheader(header_tr)
|
|
12 |
|
13 |
tr_input = st.text_area("Enter your text here:", height=50, key="tr_input") #height=30
|
14 |
if st.button("Click for predictions!", key="tr_predict"):
|
15 |
-
st.write(" ")
|
16 |
with st.spinner('Generating predictions...'):
|
17 |
result_tr = sentiment_pipeline_tr(tr_input)
|
18 |
sentiment_tr = result_tr[0]["label"]
|
@@ -20,6 +20,6 @@ if st.button("Click for predictions!", key="tr_predict"):
|
|
20 |
sentiment_tr = label_dict[sentiment_tr]
|
21 |
|
22 |
strength_tr = " "
|
23 |
-
st.write(f"Detection: {sentiment_tr}, Strength: {strength_tr}")
|
24 |
|
25 |
|
|
|
12 |
|
13 |
tr_input = st.text_area("Enter your text here:", height=50, key="tr_input") #height=30
|
14 |
if st.button("Click for predictions!", key="tr_predict"):
|
15 |
+
#st.write(" ")
|
16 |
with st.spinner('Generating predictions...'):
|
17 |
result_tr = sentiment_pipeline_tr(tr_input)
|
18 |
sentiment_tr = result_tr[0]["label"]
|
|
|
20 |
sentiment_tr = label_dict[sentiment_tr]
|
21 |
|
22 |
strength_tr = " "
|
23 |
+
#st.write(f"Detection: {sentiment_tr}, Strength: {strength_tr}")
|
24 |
|
25 |
|