Jimin Park commited on
Commit
a9ac9ac
·
1 Parent(s): f0cfa74

added model

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,8 +7,8 @@ from huggingface_hub import hf_hub_download
7
 
8
  # Download the model from Hugging Face Hub
9
  model_path = hf_hub_download(
10
- repo_id="YOUR_USERNAME/YOUR_MODEL_REPO", # Replace with your model repo
11
- filename="model.json" # Replace with your model filename
12
  )
13
  model = xgb.Booster()
14
  model.load_model(model_path)
@@ -44,7 +44,7 @@ with gr.Blocks() as demo:
44
 
45
  # Load the model from Hugging Face
46
  model = xgb.Booster() # Initialize model
47
- model.load_model("ivwhy/champion-predictor-model") # Load your model
48
 
49
  # Define champion list for dropdowns
50
  CHAMPIONS = [
 
7
 
8
  # Download the model from Hugging Face Hub
9
  model_path = hf_hub_download(
10
+ repo_id="ivwhy/champion-predictor-model", # Replace with your model repo
11
+ filename="champion_predictor.json" # Replace with your model filename
12
  )
13
  model = xgb.Booster()
14
  model.load_model(model_path)
 
44
 
45
  # Load the model from Hugging Face
46
  model = xgb.Booster() # Initialize model
47
+ #model.load_model(" ") # Load your model
48
 
49
  # Define champion list for dropdowns
50
  CHAMPIONS = [