Geek7 commited on
Commit
d99c284
·
verified ·
1 Parent(s): ea51e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,7 +95,7 @@ def main():
95
  st.title("AI Stock Trend Predictor")
96
 
97
  # User input for stock symbol
98
- symbol = st.text_input2("Enter Stock Symbol (e.g., IBM):")
99
 
100
  if not symbol:
101
  st.warning("Please enter a valid stock symbol.")
@@ -105,7 +105,7 @@ def main():
105
  api_key = API_KEY
106
 
107
  # Fetch Alpha Vantage data
108
- alpha_vantage_data = fetch_alpha_vantage_data(api_key, symbol)
109
 
110
  # Extract relevant data from Alpha Vantage response
111
  alpha_vantage_time_series = alpha_vantage_data.get('Time Series (5min)', {})
 
95
  st.title("AI Stock Trend Predictor")
96
 
97
  # User input for stock symbol
98
+ symbol2 = st.text_input("Enter Stock Symbol (e.g., IBM):")
99
 
100
  if not symbol:
101
  st.warning("Please enter a valid stock symbol.")
 
105
  api_key = API_KEY
106
 
107
  # Fetch Alpha Vantage data
108
+ alpha_vantage_data = fetch_alpha_vantage_data(api_key, symbol2)
109
 
110
  # Extract relevant data from Alpha Vantage response
111
  alpha_vantage_time_series = alpha_vantage_data.get('Time Series (5min)', {})