Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
a9ac9ac
1
Parent(s):
f0cfa74
added model
Browse files
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="
|
11 |
-
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("
|
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 = [
|