Spaces:
Runtime error
Runtime error
Commit
·
98be78d
1
Parent(s):
143e8ff
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ with st.sidebar:
|
|
84 |
|
85 |
|
86 |
st.subheader("Enter Stock Ticker")
|
87 |
-
user_input=st.text_input('','
|
88 |
|
89 |
val=True
|
90 |
try:
|
@@ -99,8 +99,10 @@ except:
|
|
99 |
if val==True:
|
100 |
date=df.index
|
101 |
|
102 |
-
|
103 |
-
|
|
|
|
|
104 |
|
105 |
left_column, right_column = st.columns(2) #Columns divided into two parts
|
106 |
with left_column:
|
@@ -231,5 +233,6 @@ if val==True:
|
|
231 |
st.pyplot(fig)
|
232 |
|
233 |
|
|
|
234 |
|
235 |
st.markdown("<br><hr><center>Made with ❤️ by <a href='https://www.linkedin.com/in/harsh-kashyap/'><strong>Harsh Kashyap</strong></a></center><hr>", unsafe_allow_html=True)
|
|
|
84 |
|
85 |
|
86 |
st.subheader("Enter Stock Ticker")
|
87 |
+
user_input=st.text_input('','HDFCBANK.BO')
|
88 |
|
89 |
val=True
|
90 |
try:
|
|
|
99 |
if val==True:
|
100 |
date=df.index
|
101 |
|
102 |
+
st.header("Recent Price")
|
103 |
+
curr = data.DataReader(user_input,'yahoo',current)['Close']
|
104 |
+
st.header(curr.iloc[0].round(2))
|
105 |
+
st.markdown("""---""")
|
106 |
|
107 |
left_column, right_column = st.columns(2) #Columns divided into two parts
|
108 |
with left_column:
|
|
|
233 |
st.pyplot(fig)
|
234 |
|
235 |
|
236 |
+
|
237 |
|
238 |
st.markdown("<br><hr><center>Made with ❤️ by <a href='https://www.linkedin.com/in/harsh-kashyap/'><strong>Harsh Kashyap</strong></a></center><hr>", unsafe_allow_html=True)
|