Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,11 @@ import numpy as np
|
|
7 |
|
8 |
# Load your models
|
9 |
emotion_model = load_model('lstm_model.h5')
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# Load the tokenizer (if used during training)
|
13 |
# tokenizer = joblib.load('tokenizer.pkl') # Update with actual file name
|
|
|
7 |
|
8 |
# Load your models
|
9 |
emotion_model = load_model('lstm_model.h5')
|
10 |
+
|
11 |
+
# Save the scikit-learn model
|
12 |
+
joblib.dump(knn_model, 'knn_model.pkl')
|
13 |
+
# Load the model
|
14 |
+
recommender_model = joblib.load('knn_model.pkl')
|
15 |
|
16 |
# Load the tokenizer (if used during training)
|
17 |
# tokenizer = joblib.load('tokenizer.pkl') # Update with actual file name
|