Raghavendra0827 commited on
Commit
5524ebd
·
verified ·
1 Parent(s): e3478ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('<p style="color: #000000;">'predicted_label'</p>', unsafe_allow_html=True)
289
  except:
290
- st.write('<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;">{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__":