Commit
·
8b1cd97
1
Parent(s):
da0ec44
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def test_(hf_username):
|
|
| 175 |
|
| 176 |
# Based on best_result do we pass the unit?
|
| 177 |
check_if_passed(unit)
|
| 178 |
-
pass_emoji(unit["passed"])
|
| 179 |
|
| 180 |
print(results_certification)
|
| 181 |
|
|
@@ -200,7 +200,7 @@ with gr.Blocks() as demo:
|
|
| 200 |
hf_username = gr.Textbox(placeholder="ThomasSimonini", label="Your Hugging Face Username")
|
| 201 |
#email = gr.Textbox(placeholder="thomas.simonini@huggingface.co", label="Your Email (to receive your certificate)")
|
| 202 |
check_progress_button = gr.Button(value="Check my progress")
|
| 203 |
-
output = gr.components.Dataframe(value= test_(hf_username), headers=["Unit", "Environment", "Library", "Baseline", "Your best result", "Your best model id", "Pass?"], datatype=["markdown", "markdown", "markdown", "number", "number", "markdown", "
|
| 204 |
check_progress_button.click(fn=test_, inputs=hf_username, outputs=output)
|
| 205 |
|
| 206 |
demo.launch()
|
|
|
|
| 175 |
|
| 176 |
# Based on best_result do we pass the unit?
|
| 177 |
check_if_passed(unit)
|
| 178 |
+
#pass_emoji(unit["passed"])
|
| 179 |
|
| 180 |
print(results_certification)
|
| 181 |
|
|
|
|
| 200 |
hf_username = gr.Textbox(placeholder="ThomasSimonini", label="Your Hugging Face Username")
|
| 201 |
#email = gr.Textbox(placeholder="thomas.simonini@huggingface.co", label="Your Email (to receive your certificate)")
|
| 202 |
check_progress_button = gr.Button(value="Check my progress")
|
| 203 |
+
output = gr.components.Dataframe(value= test_(hf_username), headers=["Unit", "Environment", "Library", "Baseline", "Your best result", "Your best model id", "Pass?"], datatype=["markdown", "markdown", "markdown", "number", "number", "markdown", "bool"])
|
| 204 |
check_progress_button.click(fn=test_, inputs=hf_username, outputs=output)
|
| 205 |
|
| 206 |
demo.launch()
|