Spaces:
Sleeping
Sleeping
metadata
license: mit
π Stock Sentiment Analysis & Price Prediction
A REST API for predicting stock prices using LSTM models trained on historical stock data and optional sentiment scores. Built with Flask and deployed using Docker on Hugging Face Spaces.
π Features
- Predict next price for top 5 stocks (AAPL, AMZN, GOOG, MSFT, TSLA)
- Optionally include sentiment score for enhanced prediction
- Models:
- Without Sentiment:
lstm_<TICKER>_model.h5 - With Sentiment:
lstm_<TICKER>_model_with_sentiment.h5
- Without Sentiment:
π§ Usage
Endpoint: /predict
POST JSON with stock inputs:
{
"ticker": "AAPL",
"input": [165.2, 166.5, 167.0, 167.4, 168.0],
"sentiment": 0.6
}