Skip to content

Commit

Permalink
Attempted to resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
arendon2 committed Dec 11, 2024
1 parent 776a497 commit 023d080
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 023d080

Please sign in to comment.