burtenshaw commited on
Commit
36d6711
·
1 Parent(s): c4891da

fix typo in reasoning

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -24,11 +24,11 @@ EXAM_MAX_QUESTIONS = os.getenv("EXAM_MAX_QUESTIONS") or 1
24
  EXAM_PASSING_SCORE = os.getenv("EXAM_PASSING_SCORE") or 0.8
25
  CERTIFYING_ORG_LINKEDIN_ID = os.getenv("CERTIFYING_ORG_LINKEDIN_ID", "000000")
26
  COURSE_TITLE = os.getenv("COURSE_TITLE", "AI Agents Fundamentals")
27
- COURSE_URL = os.getenv("COURSE_URL", "https://huggingface.co/agents-course")
28
 
29
  ds = load_dataset(EXAM_DATASET_ID, split="train")
30
 
31
- DATASET_REPO_URL = "https://huggingface.co/datasets/reaoning-course/certificates"
32
 
33
  # Convert dataset to a list of dicts and randomly sort
34
  quiz_data = ds.to_pandas().to_dict("records")
@@ -104,7 +104,7 @@ def create_linkedin_button(username: str, cert_url: str | None) -> str:
104
  current_month = date.today().month
105
 
106
  # Use the dataset certificate URL if available, otherwise fallback to default
107
- certificate_url = cert_url or "https://huggingface.co/agents-course-finishers"
108
 
109
  linkedin_params = {
110
  "startTask": "CERTIFICATION_NAME",
@@ -146,7 +146,7 @@ async def upload_certificate_to_hub(username: str, certificate_img) -> str:
146
  upload_file,
147
  path_or_fileobj=tmp.name,
148
  path_in_repo=f"certificates/{username}/{date.today()}.png",
149
- repo_id="reaoning-course/certificates",
150
  repo_type="dataset",
151
  token=os.getenv("HF_TOKEN"),
152
  )
@@ -154,7 +154,7 @@ async def upload_certificate_to_hub(username: str, certificate_img) -> str:
154
 
155
  # Construct the URL to the image
156
  cert_url = (
157
- f"https://huggingface.co/datasets/reaoning-course/certificates/"
158
  f"resolve/main/certificates/{username}/{date.today()}.png"
159
  )
160
 
 
24
  EXAM_PASSING_SCORE = os.getenv("EXAM_PASSING_SCORE") or 0.8
25
  CERTIFYING_ORG_LINKEDIN_ID = os.getenv("CERTIFYING_ORG_LINKEDIN_ID", "000000")
26
  COURSE_TITLE = os.getenv("COURSE_TITLE", "AI Agents Fundamentals")
27
+ COURSE_URL = os.getenv("COURSE_URL", "https://huggingface.co/reasoning-course")
28
 
29
  ds = load_dataset(EXAM_DATASET_ID, split="train")
30
 
31
+ DATASET_REPO_URL = "https://huggingface.co/datasets/reasoning-course/certificates"
32
 
33
  # Convert dataset to a list of dicts and randomly sort
34
  quiz_data = ds.to_pandas().to_dict("records")
 
104
  current_month = date.today().month
105
 
106
  # Use the dataset certificate URL if available, otherwise fallback to default
107
+ certificate_url = cert_url or "https://huggingface.co/reasoning-course"
108
 
109
  linkedin_params = {
110
  "startTask": "CERTIFICATION_NAME",
 
146
  upload_file,
147
  path_or_fileobj=tmp.name,
148
  path_in_repo=f"certificates/{username}/{date.today()}.png",
149
+ repo_id="reasoning-course/certificates",
150
  repo_type="dataset",
151
  token=os.getenv("HF_TOKEN"),
152
  )
 
154
 
155
  # Construct the URL to the image
156
  cert_url = (
157
+ f"https://huggingface.co/datasets/reasoning-course/certificates/"
158
  f"resolve/main/certificates/{username}/{date.today()}.png"
159
  )
160