Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
bd8f083
1
Parent(s):
f9acbdd
added new structure
Browse files- util/app.py +3 -1
util/app.py
CHANGED
@@ -130,6 +130,9 @@ def show_stats(player_opgg_url):
|
|
130 |
|
131 |
def predict_top_5_champion_w_confidence(player_opgg_url, *champions):
|
132 |
"""Make prediction based on selected champions"""
|
|
|
|
|
|
|
133 |
if not player_opgg_url or None in champions:
|
134 |
return "Please fill in all fields"
|
135 |
|
@@ -220,7 +223,6 @@ with gr.Blocks() as demo:
|
|
220 |
gr.Dropdown(choices=CHAMPIONS, label=f"Champion {i+1}")
|
221 |
for i in range(9)
|
222 |
]
|
223 |
-
print(champion_dropdowns)
|
224 |
|
225 |
with gr.Row():
|
226 |
predict_button = gr.Button("Predict")
|
|
|
130 |
|
131 |
def predict_top_5_champion_w_confidence(player_opgg_url, *champions):
|
132 |
"""Make prediction based on selected champions"""
|
133 |
+
|
134 |
+
print("Selected Champions from Dropdowns:", champions)
|
135 |
+
|
136 |
if not player_opgg_url or None in champions:
|
137 |
return "Please fill in all fields"
|
138 |
|
|
|
223 |
gr.Dropdown(choices=CHAMPIONS, label=f"Champion {i+1}")
|
224 |
for i in range(9)
|
225 |
]
|
|
|
226 |
|
227 |
with gr.Row():
|
228 |
predict_button = gr.Button("Predict")
|