Update app.py
Browse files12 unmodified lines131415161718192021222312 unmodified lines# Suppress FutureWarnings from yfinancewarnings.simplefilter(action='ignore', category=FutureWarning)l = []# Fetch historical data for BTC-USDdef predict_and_save_close_price():text_input = 'BTC-USD' # Replace with your desired cryptocurrency symboldata = yf.download(text_input, period='max')# Select Open and Close pricedata = data[['Open', 'Close']].copy() # Use .copy() to avoid the SettingWithCopyWarning12 unmodified lines131415161718192021222312 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():# Select Open and Close pricedata = data[['Open', 'Close']].copy() # Use .copy() to avoid the SettingWithCopyWarning
app.py+3-3