Coder commited on
Commit
29bebe4
·
1 Parent(s): 25d3003

initial commit

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +7 -4
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: Ind Stock Analysis
3
- emoji: 🏆
4
  authors:
5
  - user: Mohsin
6
  colorFrom: indigo
 
1
  ---
2
  title: Ind Stock Analysis
3
+ emoji:
4
  authors:
5
  - user: Mohsin
6
  colorFrom: indigo
app.py CHANGED
@@ -86,14 +86,17 @@ def main():
86
  actual_last_price = df["y"].iloc[-1]
87
  predicted_last_price = latest_forecast['yhat']
88
  sentiment = determine_sentiment(actual_last_price, predicted_last_price)
89
- st.warning(f'The last available adjusted closing price for {ticker_symbol} on {end_date.strftime("%d %B %Y")} is **{actual_last_price:.2f}**.')
90
 
91
  if sentiment == 'Positive':
92
- st.success(f"**Predicted Price:** {latest_forecast['yhat']:.2f}. **Range:** {latest_forecast['yhat_lower']:.2f} - {latest_forecast['yhat_upper']:.2f} \nOverall predication indicates positive sentiment for {forecast_horizon.lower()} time frame.")
 
93
  elif sentiment == 'Negative':
94
- st.error(f"**Predicted Price:** {latest_forecast['yhat']:.2f}. **Range:** {latest_forecast['yhat_lower']:.2f} - {latest_forecast['yhat_upper']:.2f} \nOverall predication indicates negative sentiment for {forecast_horizon.lower()} time frame.")
 
95
  else:
96
- st.info(f"**Predicted Price:** {latest_forecast['yhat']:.2f}. **Range:** {latest_forecast['yhat_lower']:.2f} - {latest_forecast['yhat_upper']:.2f} \nOverall predication indicates neutral sentiment for {forecast_horizon.lower()} time frame.")
 
97
 
98
  st.markdown(f"""
99
  **Find below the prediction Data for the {forecast_horizon.lower()}:**
 
86
  actual_last_price = df["y"].iloc[-1]
87
  predicted_last_price = latest_forecast['yhat']
88
  sentiment = determine_sentiment(actual_last_price, predicted_last_price)
89
+ st.warning(f'The last available adjusted closing price for {ticker_symbol} on {end_date.strftime("%d %B %Y")} is **₹{actual_last_price:.2f}**.')
90
 
91
  if sentiment == 'Positive':
92
+ st.success(f"**Prediction: {latest_forecast['yhat']:.2f}.**")
93
+ st.success(f"**Stoploss:** ₹{latest_forecast['yhat_lower']:.2f} **Target: ** {latest_forecast['yhat_upper']:.2f} **time frame: ** {forecast_horizon.lower()}.")
94
  elif sentiment == 'Negative':
95
+ st.error(f"**Prediction: {latest_forecast['yhat']:.2f}.**")
96
+ st.error(f"**Stoploss:** ₹{latest_forecast['yhat_lower']:.2f} **Target: ** {latest_forecast['yhat_upper']:.2f} **time frame: ** {forecast_horizon.lower()}.")
97
  else:
98
+ st.info(f"**Prediction: {latest_forecast['yhat']:.2f}.**")
99
+ st.info(f"**Stoploss:** ₹{latest_forecast['yhat_lower']:.2f} **Target: ** {latest_forecast['yhat_upper']:.2f} **time frame: ** {forecast_horizon.lower()}.")
100
 
101
  st.markdown(f"""
102
  **Find below the prediction Data for the {forecast_horizon.lower()}:**