From 023d080c94078a5e3c5141af1c0f3865bbb23558 Mon Sep 17 00:00:00 2001 From: arendon2 Date: Tue, 10 Dec 2024 18:45:59 -0600 Subject: [PATCH] Attempted to resolve merge conflict --- app.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app.py b/app.py index 521f72a7..1a19a3cb 100644 --- a/app.py +++ b/app.py @@ -64,11 +64,7 @@ def fetch_news_sentiment(ticker): # Load Keras Model without compiling to avoid warning -model_path = os.getenv("MODEL_PATH", r"C:\Users\arend\OneDrive\Desktop\cs222\main-project-shmoney\keras_model.h5") - -# Check if the file exists -if not os.path.exists(model_path): - raise FileNotFoundError(f"Model file not found at the path: {model_path}") +model_path = os.getenv("MODEL_PATH") # Load the Keras model model = load_model(model_path, compile=False)