Commit
•
0e270cd
1
Parent(s):
cc21236
Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,7 @@ def certification(hf_username, first_name, last_name):
|
|
255 |
df = df1[['passed', 'unit', 'env', 'min_result', 'best_result', 'best_model_id']]
|
256 |
|
257 |
message, certification = verify_certification(results_certification, hf_username, first_name, last_name)
|
258 |
-
|
259 |
return message, df, certification
|
260 |
|
261 |
"""
|
@@ -380,7 +380,7 @@ with gr.Blocks() as demo:
|
|
380 |
first_name = gr.Textbox(placeholder="Jane", label="Your First Name")
|
381 |
last_name = gr.Textbox(placeholder="Doe", label="Your Last Name")
|
382 |
#email = gr.Textbox(placeholder="[email protected]", label="Your Email (to receive your certificate)")
|
383 |
-
check_progress_button = gr.Button(value="Check
|
384 |
output_text = gr.components.Textbox()
|
385 |
output_pdf = gr.components.Image(type="pil")
|
386 |
output_dataframe = gr.components.Dataframe(headers=["Pass?", "Unit", "Environment", "Baseline", "Your best result", "Your best model id"], datatype=["markdown", "markdown", "markdown", "number", "number", "markdown", "bool"]) #value= certification(hf_username, first_name, last_name),
|
|
|
255 |
df = df1[['passed', 'unit', 'env', 'min_result', 'best_result', 'best_model_id']]
|
256 |
|
257 |
message, certification = verify_certification(results_certification, hf_username, first_name, last_name)
|
258 |
+
print("MESSAGE", message)
|
259 |
return message, df, certification
|
260 |
|
261 |
"""
|
|
|
380 |
first_name = gr.Textbox(placeholder="Jane", label="Your First Name")
|
381 |
last_name = gr.Textbox(placeholder="Doe", label="Your Last Name")
|
382 |
#email = gr.Textbox(placeholder="[email protected]", label="Your Email (to receive your certificate)")
|
383 |
+
check_progress_button = gr.Button(value="Check if I pass")
|
384 |
output_text = gr.components.Textbox()
|
385 |
output_pdf = gr.components.Image(type="pil")
|
386 |
output_dataframe = gr.components.Dataframe(headers=["Pass?", "Unit", "Environment", "Baseline", "Your best result", "Your best model id"], datatype=["markdown", "markdown", "markdown", "number", "number", "markdown", "bool"]) #value= certification(hf_username, first_name, last_name),
|