Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ st.title("Stock Trend Predictor: Bullish or Bearish?")
|
|
| 9 |
# Load pre-trained model from Hugging Face
|
| 10 |
@st.cache_resource
|
| 11 |
def load_model():
|
| 12 |
-
model_name = "Kaylah072001/stock_prediction_model" # Replace with your actual model name on Hugging Face
|
| 13 |
try:
|
| 14 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 15 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
|
|
|
| 9 |
# Load pre-trained model from Hugging Face
|
| 10 |
@st.cache_resource
|
| 11 |
def load_model():
|
| 12 |
+
model_name = "Kaylah072001/stock_prediction_model.h5" # Replace with your actual model name on Hugging Face
|
| 13 |
try:
|
| 14 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 15 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|