Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
dcaaa10
1
Parent(s):
cc07c1e
added new structure
Browse files- util/app.py +2 -2
util/app.py
CHANGED
@@ -172,7 +172,7 @@ def predict_top_5_champion_w_confidence(player_opgg_url, *champions):
|
|
172 |
# Create DMatrix and predict
|
173 |
# dtest = DMatrix(X_processed, enable_categorical=False)
|
174 |
# predictions = model.predict(dtest)
|
175 |
-
proba = model.predict_proba(
|
176 |
|
177 |
# Get prediction indices
|
178 |
# if len(predictions.shape) > 1:
|
@@ -236,7 +236,7 @@ def predict_top_5_champion_w_confidence(player_opgg_url, *champions):
|
|
236 |
|
237 |
except Exception as e:
|
238 |
print(f"Error mapping champion ID: {e}")
|
239 |
-
return f"Error: Could not map champion ID {decoded_numeric[0]}"
|
240 |
|
241 |
except Exception as e:
|
242 |
import traceback
|
|
|
172 |
# Create DMatrix and predict
|
173 |
# dtest = DMatrix(X_processed, enable_categorical=False)
|
174 |
# predictions = model.predict(dtest)
|
175 |
+
proba = model.predict_proba(predict_column)
|
176 |
|
177 |
# Get prediction indices
|
178 |
# if len(predictions.shape) > 1:
|
|
|
236 |
|
237 |
except Exception as e:
|
238 |
print(f"Error mapping champion ID: {e}")
|
239 |
+
# return f"Error: Could not map champion ID {decoded_numeric[0]}"
|
240 |
|
241 |
except Exception as e:
|
242 |
import traceback
|