Spaces:
Runtime error
Runtime error
Commit
·
d01e4bd
1
Parent(s):
f0d58f3
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,12 +15,12 @@ end = '2022-12-31'
|
|
| 15 |
stock_ticker = 'TATAPOWER.NS'
|
| 16 |
|
| 17 |
st.title("Stock Market Trend Predictor")
|
| 18 |
-
use_input = st.text_input('Enter
|
| 19 |
if st.button('Analyze'):
|
| 20 |
df = pdr.get_data_yahoo(use_input, start)
|
| 21 |
|
| 22 |
#View Data
|
| 23 |
-
st.subheader("Data from year
|
| 24 |
st.dataframe(df.sort_index(ascending=False),use_container_width=True)
|
| 25 |
|
| 26 |
#Plot Graph for Closing Price Vs the Time
|
|
@@ -95,11 +95,17 @@ if st.button('Analyze'):
|
|
| 95 |
|
| 96 |
|
| 97 |
def main():
|
| 98 |
-
st.title('Stock Price
|
| 99 |
|
| 100 |
#Call the function to plot the final graph
|
| 101 |
plot_final_graph()
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
if __name__ == "__main__":
|
| 105 |
main()
|
|
|
|
| 15 |
stock_ticker = 'TATAPOWER.NS'
|
| 16 |
|
| 17 |
st.title("Stock Market Trend Predictor")
|
| 18 |
+
use_input = st.text_input('Enter Stock Ticker', stock_ticker)
|
| 19 |
if st.button('Analyze'):
|
| 20 |
df = pdr.get_data_yahoo(use_input, start)
|
| 21 |
|
| 22 |
#View Data
|
| 23 |
+
st.subheader("Data from year 2000 to till date:")
|
| 24 |
st.dataframe(df.sort_index(ascending=False),use_container_width=True)
|
| 25 |
|
| 26 |
#Plot Graph for Closing Price Vs the Time
|
|
|
|
| 95 |
|
| 96 |
|
| 97 |
def main():
|
| 98 |
+
st.title('Stock Price Predictive Analysis')
|
| 99 |
|
| 100 |
#Call the function to plot the final graph
|
| 101 |
plot_final_graph()
|
| 102 |
|
| 103 |
+
st.subheader("Original Stock Pice:")
|
| 104 |
+
st.dataframe(y_test,use_container_width=True)
|
| 105 |
+
|
| 106 |
+
st.subheader("Predicted Stock Pice:")
|
| 107 |
+
st.dataframe(y_predicted,use_container_width=True)
|
| 108 |
+
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
main()
|