ThomasSimonini HF staff commited on
Commit
94b9645
1 Parent(s): a3fe4eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -393,10 +393,9 @@ with gr.Blocks() as demo:
393
  #email = gr.Textbox(placeholder="jane.doe@gmail.com", label="Your Email (to receive your certificate)")
394
  check_progress_button = gr.Button(value="Check if I pass")
395
  check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs=[output_text, output_pdf, output_img, output_dataframe])#[output1, output2])
396
- with gr.Row(visible=False) as output_row:
397
- output_text = gr.components.Textbox()
398
- output_pdf = gr.File()
399
- output_img = gr.components.Image(type="pil")
400
- 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),
401
 
402
  demo.launch(debug=True)
 
393
  #email = gr.Textbox(placeholder="jane.doe@gmail.com", label="Your Email (to receive your certificate)")
394
  check_progress_button = gr.Button(value="Check if I pass")
395
  check_progress_button.click(fn=certification, inputs=[hf_username, first_name, last_name], outputs=[output_text, output_pdf, output_img, output_dataframe])#[output1, output2])
396
+ output_text = gr.components.Textbox()
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
 
401
  demo.launch(debug=True)