ThomasSimonini HF staff commited on
Commit
585b645
·
1 Parent(s): eb93166

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -257,9 +257,9 @@ def certification(hf_username, first_name, last_name):
257
  certificate, message, pdf = verify_certification(results_certification, hf_username, first_name, last_name)
258
  print("MESSAGE", message)
259
 
260
- output_row: gr.update(visible=True)
261
 
262
- return message, pdf, certificate, df
263
 
264
  """
265
  Verify that the user pass.
@@ -397,7 +397,7 @@ with gr.Blocks() as demo:
397
  output_pdf = gr.File()
398
  output_img = gr.components.Image(type="pil")
399
  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),
400
- check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs=[output_text, output_pdf, output_img, output_dataframe])#[output1, output2])
401
 
402
 
403
  demo.launch(debug=True)
 
257
  certificate, message, pdf = verify_certification(results_certification, hf_username, first_name, last_name)
258
  print("MESSAGE", message)
259
 
260
+
261
 
262
+ return message, pdf, certificate, df, output_row: gr.update(visible=True)
263
 
264
  """
265
  Verify that the user pass.
 
397
  output_pdf = gr.File()
398
  output_img = gr.components.Image(type="pil")
399
  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),
400
+ check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs=[output_text, output_pdf, output_img, output_dataframe, output_row])#[output1, output2])
401
 
402
 
403
  demo.launch(debug=True)