Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
2279bd3
1
Parent(s):
24265ea
debug
Browse files- README.md +1 -0
- util/app.py +1 -33
README.md
CHANGED
@@ -7,6 +7,7 @@ sdk: gradio
|
|
7 |
sdk_version: "4.19.2"
|
8 |
app_file: util/app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
# League of Legends Champion Prediction
|
|
|
7 |
sdk_version: "4.19.2"
|
8 |
app_file: util/app.py
|
9 |
pinned: false
|
10 |
+
hardware: true
|
11 |
---
|
12 |
|
13 |
# League of Legends Champion Prediction
|
util/app.py
CHANGED
@@ -155,36 +155,4 @@ demo.launch(debug=True)
|
|
155 |
|
156 |
# For local testing
|
157 |
if __name__ == "__main__":
|
158 |
-
demo.launch()
|
159 |
-
|
160 |
-
|
161 |
-
''' code graveyard
|
162 |
-
|
163 |
-
def get_player_stats(player_opgg_url):
|
164 |
-
"""Get player statistics from API"""
|
165 |
-
# Placeholder - implement actual API call
|
166 |
-
|
167 |
-
return {
|
168 |
-
'wins': 120,
|
169 |
-
'losses': 80,
|
170 |
-
'winrate': '60%',
|
171 |
-
'favorite_champions': ['Ahri', 'Zed', 'Yasuo']
|
172 |
-
}
|
173 |
-
|
174 |
-
def get_recent_matches(player_opgg_url):
|
175 |
-
"""Get recent match history"""
|
176 |
-
# Placeholder - implement actual API call
|
177 |
-
return pd.DataFrame({
|
178 |
-
'champion': ['Ahri', 'Zed', 'Yasuo'],
|
179 |
-
'result': ['Win', 'Loss', 'Win'],
|
180 |
-
'kda': ['8/2/10', '4/5/3', '12/3/7']
|
181 |
-
})
|
182 |
-
|
183 |
-
def prepare_features(player_opgg_url, champions):
|
184 |
-
"""Prepare features for model prediction"""
|
185 |
-
# Placeholder - implement actual feature engineering
|
186 |
-
features = [] # Transform champions into model features
|
187 |
-
return pd.DataFrame([features])
|
188 |
-
|
189 |
-
|
190 |
-
'''
|
|
|
155 |
|
156 |
# For local testing
|
157 |
if __name__ == "__main__":
|
158 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|