jarguello76 commited on
Commit
d86621e
·
verified ·
1 Parent(s): 709bcbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -38,10 +38,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
38
  and displays the results.
39
  """
40
  # --- Determine HF Space Runtime URL and Repo URL ---
41
- space_id = 'jarguello76/Agents_JA_Final_Assignment_Template' # Get the SPACE_ID for sending link to the code
42
 
43
  if profile:
44
- username= 'jarguello76'
45
  print(f"User logged in: {username}")
46
  else:
47
  print("User not logged in.")
@@ -51,6 +51,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
51
  questions_url = f"{api_url}/questions"
52
  submit_url = f"{api_url}/submit"
53
 
 
54
  # 1. Instantiate Agent ( modify this part to create your agent)
55
  try:
56
  agent = BasicAgent()
 
38
  and displays the results.
39
  """
40
  # --- Determine HF Space Runtime URL and Repo URL ---
41
+ space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
42
 
43
  if profile:
44
+ username= f"{profile.username}"
45
  print(f"User logged in: {username}")
46
  else:
47
  print("User not logged in.")
 
51
  questions_url = f"{api_url}/questions"
52
  submit_url = f"{api_url}/submit"
53
 
54
+
55
  # 1. Instantiate Agent ( modify this part to create your agent)
56
  try:
57
  agent = BasicAgent()