netflypsb commited on
Commit
8ee2f06
·
verified ·
1 Parent(s): 0f3e2e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import pandas_ta as ta
5
  import matplotlib.pyplot as plt
6
 
7
  # Caching the stock data fetch function to improve performance
8
- @st.cache
9
  def fetch_stock_data(ticker, period, interval):
10
  return yf.download(ticker, period=period, interval=interval)
11
 
 
5
  import matplotlib.pyplot as plt
6
 
7
  # Caching the stock data fetch function to improve performance
8
+ @st.cache_data
9
  def fetch_stock_data(ticker, period, interval):
10
  return yf.download(ticker, period=period, interval=interval)
11