Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,12 @@ import joblib
|
|
5 |
import pandas as pd
|
6 |
import numpy as np
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Load your emotion prediction model
|
9 |
emotion_model = load_model('lstm_model.h5')
|
10 |
|
|
|
5 |
import pandas as pd
|
6 |
import numpy as np
|
7 |
|
8 |
+
try:
|
9 |
+
import sklearn
|
10 |
+
st.write("scikit-learn is installed.")
|
11 |
+
except ImportError:
|
12 |
+
st.error("scikit-learn is not installed.")
|
13 |
+
|
14 |
# Load your emotion prediction model
|
15 |
emotion_model = load_model('lstm_model.h5')
|
16 |
|