Spaces:
Build error
Build error
Andy Qin
commited on
Debug
Browse files
app.py
CHANGED
|
@@ -98,8 +98,8 @@ if st.button("Analyze"):
|
|
| 98 |
else:
|
| 99 |
result = analyze(user_model, user_input)
|
| 100 |
st.write("Result:")
|
| 101 |
-
st.write(f"Label: **{result[0]['label']}**")
|
| 102 |
-
st.write(f"Confidence Score: **{result[0]['score']}**")
|
| 103 |
|
| 104 |
else:
|
| 105 |
-
st.write("Go on! Try the app!")
|
|
|
|
| 98 |
else:
|
| 99 |
result = analyze(user_model, user_input)
|
| 100 |
st.write("Result:")
|
| 101 |
+
st.write(f"Label: **{result[0][0]['label']}**")
|
| 102 |
+
st.write(f"Confidence Score: **{result[0][0]['score']}**")
|
| 103 |
|
| 104 |
else:
|
| 105 |
+
st.write("Go on! Try the app!")
|