XMB480 commited on
Commit
aa1881a
·
verified ·
1 Parent(s): c3d1cd4

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -52,6 +52,7 @@ meta_clf_cnn = MetaClassifier(use_logistic_regression=True)
52
  try:
53
  meta_clf_cnn.load(xgb_cnn_path)
54
  meta_clf_cnn.xgb_model.set_params(device="cpu")
 
55
  except Exception as e:
56
  print(f"Warning: Could not load CNN XGBoost weights: {e}")
57
 
@@ -59,6 +60,7 @@ meta_clf_gnn = MetaClassifier(use_logistic_regression=True)
59
  try:
60
  meta_clf_gnn.load(xgb_gnn_path)
61
  meta_clf_gnn.xgb_model.set_params(device="cpu")
 
62
  except Exception as e:
63
  print(f"Warning: Could not load GNN XGBoost weights: {e}")
64
 
 
52
  try:
53
  meta_clf_cnn.load(xgb_cnn_path)
54
  meta_clf_cnn.xgb_model.set_params(device="cpu")
55
+ meta_clf_cnn.use_lr = False
56
  except Exception as e:
57
  print(f"Warning: Could not load CNN XGBoost weights: {e}")
58
 
 
60
  try:
61
  meta_clf_gnn.load(xgb_gnn_path)
62
  meta_clf_gnn.xgb_model.set_params(device="cpu")
63
+ meta_clf_gnn.use_lr = False
64
  except Exception as e:
65
  print(f"Warning: Could not load GNN XGBoost weights: {e}")
66
 
requirements.txt CHANGED
@@ -4,5 +4,5 @@ transformers
4
  playwright==1.42.0
5
  beautifulsoup4
6
  xgboost
7
- scikit-learn==1.9.0
8
  numpy
 
4
  playwright==1.42.0
5
  beautifulsoup4
6
  xgboost
7
+ scikit-learn
8
  numpy