Efimov6886 commited on
Commit
6d2c491
·
1 Parent(s): a56b6fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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)