Update model.py
Browse files36 unmodified lines3738394041424319 unmodified lines6364656667686936 unmodified lines# =============================================================================# API Keys (Replace with your own keys)# =============================================================================ALPHAVANTAGE_API_KEY = "DDKHTD50P1FS30WL"FINNHUB_API_KEY = "cu5gvghr01qqj8u6iau0cu5gvghr01qqj8u6iaug"# =============================================================================19 unmodified lineselif "Note" in data:raise ValueError("API request limit reached. Please try again in a minute.")elif "Information" in data:raise ValueError(f"Alpha Vantage API daily limit reached. Please try again tomorrow. Details: {data['Information']}")else:raise ValueError(f"Unable to fetch data for symbol '{symbol}'. Please verify the symbol.")36 unmodified lines3738394041424319 unmodified lines6364656667686936 unmodified lines# =============================================================================# API Keys (Replace with your own keys)# =============================================================================ALPHAVANTAGE_API_KEY = "IELF382B4X42YRTX"FINNHUB_API_KEY = "cu5gvghr01qqj8u6iau0cu5gvghr01qqj8u6iaug"# =============================================================================19 unmodified lineselif "Note" in data:raise ValueError("API request limit reached. Please try again in a minute.")elif "Information" in data:raise ValueError(f"Your application is actually working perfectly. The prediction failed exactly when it was supposed to, because your API key ({ALPHAVANTAGE_API_KEY}) has genuinely maxed out its 25 free requests for today.")else:raise ValueError(f"Unable to fetch data for symbol '{symbol}'. Please verify the symbol.")
model.py+2-2