Spaces:
Sleeping
Sleeping
Coder
commited on
Commit
·
25d3003
1
Parent(s):
028caff
initial commit
Browse files
app.py
CHANGED
@@ -89,11 +89,11 @@ def main():
|
|
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
|
93 |
elif sentiment == 'Negative':
|
94 |
-
st.error(f
|
95 |
else:
|
96 |
-
st.info(f
|
97 |
|
98 |
st.markdown(f"""
|
99 |
**Find below the prediction Data for the {forecast_horizon.lower()}:**
|
|
|
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()}:**
|