Kaylah072001 commited on
Commit
2cf1a68
·
verified ·
1 Parent(s): c1eafc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -19,7 +19,6 @@ def load_model():
19
  st.success("Model loaded successfully!")
20
  except Exception as e:
21
  st.error(f"Error loading model: {e}")
22
- st.warning("Using untrained model. Predictions may not be accurate.")
23
  model.eval()
24
  return model
25
 
@@ -52,10 +51,9 @@ if uploaded_file is not None:
52
  st.header("Prediction")
53
  if predicted_class == 0:
54
  sentiment = "Bearish"
55
- color = "red"
56
  else:
57
  sentiment = "Bullish"
58
- color = "green"
59
 
60
  confidence = probabilities[predicted_class].item() * 100
61
  st.subheader(f"{sentiment}: {confidence:.2f}%")
 
19
  st.success("Model loaded successfully!")
20
  except Exception as e:
21
  st.error(f"Error loading model: {e}")
 
22
  model.eval()
23
  return model
24
 
 
51
  st.header("Prediction")
52
  if predicted_class == 0:
53
  sentiment = "Bearish"
54
+
55
  else:
56
  sentiment = "Bullish"
 
57
 
58
  confidence = probabilities[predicted_class].item() * 100
59
  st.subheader(f"{sentiment}: {confidence:.2f}%")