Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -155,12 +155,12 @@ st.markdown(
|
|
155 |
}
|
156 |
.stButton>button {
|
157 |
background-color: var(--primary-color);
|
158 |
-
color:
|
159 |
font-size: 16px;
|
160 |
width: 100%;
|
161 |
border-radius: 8px;
|
162 |
padding: 10px;
|
163 |
-
border:
|
164 |
}
|
165 |
.stTextArea textarea {
|
166 |
font-size: 16px;
|
@@ -338,9 +338,9 @@ with st.container():
|
|
338 |
details = ""
|
339 |
if show_details:
|
340 |
details = f"""
|
341 |
-
3-Class Probability: {result['prob3class']
|
342 |
3-Class Predicted Label: {['NEI', 'SUPPORTED', 'REFUTED'][result['pred_tc']]}
|
343 |
-
2-Class Probability: {result['prob2class']
|
344 |
2-Class Predicted Label: {['SUPPORTED', 'REFUTED'][result['pred_bc']] if isinstance(result['pred_bc'], int) and result['pred_tc'] != 0 else 'Not used'}
|
345 |
"""
|
346 |
|
|
|
155 |
}
|
156 |
.stButton>button {
|
157 |
background-color: var(--primary-color);
|
158 |
+
color: red;
|
159 |
font-size: 16px;
|
160 |
width: 100%;
|
161 |
border-radius: 8px;
|
162 |
padding: 10px;
|
163 |
+
border: 2px solid red;
|
164 |
}
|
165 |
.stTextArea textarea {
|
166 |
font-size: 16px;
|
|
|
338 |
details = ""
|
339 |
if show_details:
|
340 |
details = f"""
|
341 |
+
3-Class Probability: {result['prob3class']:.2f}
|
342 |
3-Class Predicted Label: {['NEI', 'SUPPORTED', 'REFUTED'][result['pred_tc']]}
|
343 |
+
2-Class Probability: {result['prob2class']:.2f}
|
344 |
2-Class Predicted Label: {['SUPPORTED', 'REFUTED'][result['pred_bc']] if isinstance(result['pred_bc'], int) and result['pred_tc'] != 0 else 'Not used'}
|
345 |
"""
|
346 |
|