Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,11 @@ import numpy as np
|
|
| 4 |
import joblib
|
| 5 |
from sklearn.base import BaseEstimator, TransformerMixin
|
| 6 |
from sklearn.preprocessing import StandardScaler, LabelEncoder
|
|
|
|
|
|
|
| 7 |
|
|
|
|
|
|
|
| 8 |
# Custom LabelEncoder Transformer
|
| 9 |
class LabelEncoderTransformer(BaseEstimator, TransformerMixin):
|
| 10 |
def __init__(self):
|
|
|
|
| 4 |
import joblib
|
| 5 |
from sklearn.base import BaseEstimator, TransformerMixin
|
| 6 |
from sklearn.preprocessing import StandardScaler, LabelEncoder
|
| 7 |
+
import subprocess
|
| 8 |
+
import sys
|
| 9 |
|
| 10 |
+
# C脿i 膽岷穞 th瓢 vi峄噉 n岷縰 ch瓢a c贸
|
| 11 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "flask", "joblib"])
|
| 12 |
# Custom LabelEncoder Transformer
|
| 13 |
class LabelEncoderTransformer(BaseEstimator, TransformerMixin):
|
| 14 |
def __init__(self):
|