netflypsb commited on
Commit
3c1035f
·
verified ·
1 Parent(s): 4bac498

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_data(allow_output_mutation=True)
9
  def fetch_stock_data(ticker, period, interval):
10
  try:
11
  data = yf.download(ticker, period=period, interval=interval)
 
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
  try:
11
  data = yf.download(ticker, period=period, interval=interval)