Spaces:
Runtime error
Runtime error
Commit
·
6d2c491
1
Parent(s):
a56b6fe
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
|
|
2 |
import pickle
|
3 |
import pandas as pd
|
4 |
|
|
|
|
|
|
|
5 |
# Load the model from the file
|
6 |
with open('xgb_model.pkl', 'rb') as file:
|
7 |
model = pickle.load(file)
|
|
|
2 |
import pickle
|
3 |
import pandas as pd
|
4 |
|
5 |
+
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
|
6 |
+
'xgboost'])
|
7 |
+
|
8 |
# Load the model from the file
|
9 |
with open('xgb_model.pkl', 'rb') as file:
|
10 |
model = pickle.load(file)
|