Commit
•
94b9645
1
Parent(s):
a3fe4eb
Update app.py
Browse files
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 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
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)
|