Geek7 commited on
Commit
821ca80
·
verified ·
1 Parent(s): 1a06192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -95,6 +95,9 @@ def calculate_indicators(data):
95
  def main():
96
  st.title("AI Stock Trend Predictor")
97
 
 
 
 
98
  def fetch_alpha_vantage_data(api_key, symbol2):
99
  url = f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol2={symbol2}&interval=5min&apikey={api_key}'
100
  response = requests.get(url)
 
95
  def main():
96
  st.title("AI Stock Trend Predictor")
97
 
98
+ # Input for stock symbol
99
+ symbol2 = st.text_input("Enter stock symbol (e.g., AAPL):", "AAPL",key="symbol2")
100
+
101
  def fetch_alpha_vantage_data(api_key, symbol2):
102
  url = f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol2={symbol2}&interval=5min&apikey={api_key}'
103
  response = requests.get(url)