Commit
•
1bff76c
1
Parent(s):
a4a7f09
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def check_if_passed(model):
|
|
122 |
if model["best_result"] >= model["min_result"]:
|
123 |
model["passed_"] = True
|
124 |
|
125 |
-
def certification(hf_username):
|
126 |
results_certification = [
|
127 |
{
|
128 |
"unit": "Unit 1",
|
@@ -361,6 +361,6 @@ with gr.Blocks() as demo:
|
|
361 |
check_progress_button = gr.Button(value="Check my progress")
|
362 |
output1 = gr.components.Dataframe(value= certification(hf_username), headers=["Pass?", "Unit", "Environment", "Baseline", "Your best result", "Your best model id"], datatype=["markdown", "markdown", "markdown", "number", "number", "markdown", "bool"])
|
363 |
#output2 = gr.components.Image(type="pil")
|
364 |
-
check_progress_button.click(fn=certification, inputs=hf_username, outputs= output1)#[output1, output2])
|
365 |
|
366 |
demo.launch(debug=True)
|
|
|
122 |
if model["best_result"] >= model["min_result"]:
|
123 |
model["passed_"] = True
|
124 |
|
125 |
+
def certification(hf_username, first_name, last_name):
|
126 |
results_certification = [
|
127 |
{
|
128 |
"unit": "Unit 1",
|
|
|
361 |
check_progress_button = gr.Button(value="Check my progress")
|
362 |
output1 = gr.components.Dataframe(value= certification(hf_username), headers=["Pass?", "Unit", "Environment", "Baseline", "Your best result", "Your best model id"], datatype=["markdown", "markdown", "markdown", "number", "number", "markdown", "bool"])
|
363 |
#output2 = gr.components.Image(type="pil")
|
364 |
+
check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs= output1)#[output1, output2])
|
365 |
|
366 |
demo.launch(debug=True)
|