Update app.py
Browse files12 unmodified lines131415161716181920192021222312 unmodified lines# Suppress FutureWarnings from yfinancewarnings.simplefilter(action='ignore', category=FutureWarning)l = []text_input = 'BTC-USD' # Replace with your desired cryptocurrency symboldata = yf.download(text_input, period='max')
# Fetch historical data for BTC-USDdef predict_and_save_close_price(): text_input = 'BTC-USD' # Replace with your desired cryptocurrency symbol data = yf.download(text_input, period='max') # Select Open and Close price data = data[['Open', 'Close']].copy() # Use .copy() to avoid the SettingWithCopyWarningapp.py+3-3