ThomasSimonini HF staff commited on
Commit
56dd244
Β·
1 Parent(s): 2d75bf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -175,6 +175,7 @@ def test_(hf_username):
175
 
176
  # Based on best_result do we pass the unit?
177
  check_if_passed(unit)
 
178
 
179
  print(results_certification)
180
 
@@ -185,21 +186,21 @@ def test_(hf_username):
185
 
186
  with gr.Blocks() as demo:
187
  gr.Markdown(f"""
188
- # πŸ† Check your progress in the Deep Reinforcement Learning Course πŸ†
189
-
190
- You can check here your progress.
191
 
192
- - To get a certificate of completion: you need to complete 80% of the assignments **before the end of April 2023**.
193
- - To get a certificate of honors: you need to complete 100% of the assignments **before the end of April 2023**.
194
 
 
 
195
  Just type your Hugging Face Username πŸ€— (in my case ThomasSimonini)
196
-
197
  """)
198
 
199
  hf_username = gr.Textbox(placeholder="ThomasSimonini", label="Your Hugging Face Username")
200
  email = gr.Textbox(placeholder="[email protected]", label="Your Email (to receive your certificate)")
201
  check_progress_button = gr.Button(value="Check my progress")
202
- 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"])
203
  check_progress_button.click(fn=test_, inputs=hf_username, outputs=output)
204
 
205
  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
 
 
186
 
187
  with gr.Blocks() as demo:
188
  gr.Markdown(f"""
189
+ # πŸ† Check your progress in the Deep Reinforcement Learning Course πŸ†
190
+ You can check your progress here.
 
191
 
192
+ - To get a certificate of completion, you must **pass 80% of the assignments before the end of April 2023**.
193
+ - To get an honors certificate, you must **pass 100% of the assignments before the end of April 2023**.
194
 
195
+ To pass an assignment your model result (mean_reward - std_reward) must be >= min_result
196
+
197
  Just type your Hugging Face Username πŸ€— (in my case ThomasSimonini)
 
198
  """)
199
 
200
  hf_username = gr.Textbox(placeholder="ThomasSimonini", label="Your Hugging Face Username")
201
  email = gr.Textbox(placeholder="[email protected]", 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", "markdown"])
204
  check_progress_button.click(fn=test_, inputs=hf_username, outputs=output)
205
 
206
  demo.launch()