Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ if "input_text" not in st.session_state:
|
|
16 |
def mostrar_resultado(resultado):
|
17 |
if resultado['label'] in ['4 stars','5 stars','POS']:
|
18 |
st.success(f"Sentimiento: {resultado['label']} (Precisi贸n: {resultado['score']:.4f})")
|
19 |
-
elif
|
20 |
st.info(f"Sentimiento: {resultado['label']} (Precisi贸n: {resultado['score']:.4f})")
|
21 |
else:
|
22 |
st.error(f"Sentimiento: {resultado['label']} (Precisi贸n: {resultado['score']:.4f})")
|
|
|
16 |
def mostrar_resultado(resultado):
|
17 |
if resultado['label'] in ['4 stars','5 stars','POS']:
|
18 |
st.success(f"Sentimiento: {resultado['label']} (Precisi贸n: {resultado['score']:.4f})")
|
19 |
+
elif resultado['label'] in ['3 stars','NEU']:
|
20 |
st.info(f"Sentimiento: {resultado['label']} (Precisi贸n: {resultado['score']:.4f})")
|
21 |
else:
|
22 |
st.error(f"Sentimiento: {resultado['label']} (Precisi贸n: {resultado['score']:.4f})")
|