Commit
•
7539ced
1
Parent(s):
898ea9f
Update app.py
Browse files
app.py
CHANGED
@@ -256,7 +256,7 @@ def certification(hf_username, first_name, last_name):
|
|
256 |
|
257 |
certificate, message, pdf = verify_certification(results_certification, hf_username, first_name, last_name)
|
258 |
print("MESSAGE", message)
|
259 |
-
return message, pdf,
|
260 |
|
261 |
"""
|
262 |
Verify that the user pass.
|
@@ -387,6 +387,6 @@ with gr.Blocks() as demo:
|
|
387 |
output_pdf = gr.File()
|
388 |
output_img = gr.components.Image(type="pil")
|
389 |
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),
|
390 |
-
check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs=[output_text,
|
391 |
|
392 |
demo.launch(debug=True)
|
|
|
256 |
|
257 |
certificate, message, pdf = verify_certification(results_certification, hf_username, first_name, last_name)
|
258 |
print("MESSAGE", message)
|
259 |
+
return message, pdf, certificate, df
|
260 |
|
261 |
"""
|
262 |
Verify that the user pass.
|
|
|
387 |
output_pdf = gr.File()
|
388 |
output_img = gr.components.Image(type="pil")
|
389 |
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),
|
390 |
+
check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs=[output_text, output_pdf, output_img, output_dataframe])#[output1, output2])
|
391 |
|
392 |
demo.launch(debug=True)
|