salman-mhmd-khan commited on
Commit
bf5dd11
·
verified ·
1 Parent(s): b685424

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -455,6 +455,16 @@ elif show_news_button:
455
  elif predict_lstm_button:
456
  if symbol:
457
  # Call the LSTM prediction function based on last 5 days with 5 interval of closing data
 
 
 
 
 
 
 
 
 
 
458
  period = "5d"
459
  interval = "5m"
460
  predicted_price = calculate_prediction_with_ltsm(symbol, period, interval)
@@ -463,14 +473,10 @@ elif predict_lstm_button:
463
  #st.write(f"**Predicted next realtime price: ${predicted_price[0][0]:.10f}**")
464
 
465
  st.markdown(
466
- """
467
- <h3 style="color: #FFD700;">Final Predicted Value by Learned LSTM Model</h3>
468
- <p style="font-size: 1.5em; color: #32CD32;">
469
- Based on the last 5 days with 5-minute intervals of closing data:
470
- </p>
471
  <p style="font-size: 2em; font-weight: bold; color: #FF4500;">
472
  Predicted Next Realtime Price: ${predicted_price[0][0]:.10f}
473
  </p>
474
  """,
475
- unsafe_allow_html=True
476
- )
 
455
  elif predict_lstm_button:
456
  if symbol:
457
  # Call the LSTM prediction function based on last 5 days with 5 interval of closing data
458
+ st.markdown(
459
+ """
460
+ <h3 style="color: #FFD700;">Final Predicted Value Learned by training a LSTM Model</h3>
461
+ <p style="font-size: 1.5em; color: #32CD32;">
462
+ ***Based on the last 5 days with 5-minute intervals of closing data***
463
+ </p>
464
+ """,
465
+ unsafe_allow_html=True
466
+ )
467
+
468
  period = "5d"
469
  interval = "5m"
470
  predicted_price = calculate_prediction_with_ltsm(symbol, period, interval)
 
473
  #st.write(f"**Predicted next realtime price: ${predicted_price[0][0]:.10f}**")
474
 
475
  st.markdown(
476
+ f"""
 
 
 
 
477
  <p style="font-size: 2em; font-weight: bold; color: #FF4500;">
478
  Predicted Next Realtime Price: ${predicted_price[0][0]:.10f}
479
  </p>
480
  """,
481
+ unsafe_allow_html=True
482
+ )