Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -285,9 +285,9 @@ def main():
|
|
| 285 |
if st.button("Predict"):
|
| 286 |
predicted_label = pred(selected_text)[0]
|
| 287 |
try:
|
| 288 |
-
st.write(f'<p style="color: #000000;">{predicted_label}</p>', unsafe_allow_html=True)
|
| 289 |
except:
|
| 290 |
-
st.write(f'<p style="color: #000000;">{predicted_label}</p>', unsafe_allow_html=True)
|
| 291 |
|
| 292 |
|
| 293 |
if __name__ == "__main__":
|
|
|
|
| 285 |
if st.button("Predict"):
|
| 286 |
predicted_label = pred(selected_text)[0]
|
| 287 |
try:
|
| 288 |
+
st.write(f'<p style="color: #000000;">{Labels[predicted_label]}</p>', unsafe_allow_html=True)
|
| 289 |
except:
|
| 290 |
+
st.write(f'<p style="color: #000000;">{Labels[predicted_label]}</p>', unsafe_allow_html=True)
|
| 291 |
|
| 292 |
|
| 293 |
if __name__ == "__main__":
|