Tryfonas commited on
Commit
477601e
·
verified ·
1 Parent(s): 8d6519f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ if st.button("Analyze Sentiment"):
20
  if user_input:
21
  try:
22
  predictions = model([user_input])
23
- st.write(f"Prediction for '{user_input}': {predictions[0]}")
24
  except Exception as e:
25
  st.error(f"Error during prediction: {e}")
26
  else:
 
20
  if user_input:
21
  try:
22
  predictions = model([user_input])
23
+ st.write(f"Prediction: {predictions[0]}")
24
  except Exception as e:
25
  st.error(f"Error during prediction: {e}")
26
  else: