shrutikaP8497 commited on
Commit
af381f6
·
verified ·
1 Parent(s): 205223a

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +9 -8
utils.py CHANGED
@@ -8,19 +8,20 @@ BASE_URL = "https://agents-course-unit4-scoring.hf.space"
8
 
9
 
10
 
11
- def get_hf_username() -> str:
 
 
12
  """
13
- Get the Hugging Face username from the environment (used in Spaces).
14
  """
15
- return os.environ.get("SPACE_AUTHOR_NAME", "unknown-user")
16
 
17
-
18
- def get_code_link() -> str:
19
  """
20
- Get the link to the current Space repository.
21
  """
22
- repo_id = os.environ.get("SPACE_ID", "unknown-repo")
23
- return f"https://huggingface.co/spaces/{repo_id}"
24
 
25
  def download_task_file(task_id, save_dir="downloads"):
26
  """
 
8
 
9
 
10
 
11
+ import os
12
+
13
+ def get_hf_username():
14
  """
15
+ Gets Hugging Face username for submission.
16
  """
17
+ return os.environ.get("HF_USERNAME", "shrutikaP8497") # replace with your HF username
18
 
19
+ def get_code_link():
 
20
  """
21
+ Returns the public URL to the Hugging Face Space code.
22
  """
23
+ return "https://huggingface.co/spaces/shrutikaP8497/gaia_agent_code"
24
+
25
 
26
  def download_task_file(task_id, save_dir="downloads"):
27
  """