Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
25 |
and displays the results.
|
26 |
"""
|
27 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
28 |
-
space_id = os.getenv("
|
29 |
|
30 |
if profile:
|
31 |
username= f"{profile.username}"
|
@@ -34,7 +34,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
34 |
print("User not logged in.")
|
35 |
return "Please Login to Hugging Face with the button.", None
|
36 |
|
37 |
-
api_url =
|
38 |
questions_url = f"{api_url}/questions"
|
39 |
submit_url = f"{api_url}/submit"
|
40 |
|
|
|
25 |
and displays the results.
|
26 |
"""
|
27 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
28 |
+
space_id = os.getenv("/Synnove/Final_Assignment_Template") # Get the SPACE_ID for sending link to the code
|
29 |
|
30 |
if profile:
|
31 |
username= f"{profile.username}"
|
|
|
34 |
print("User not logged in.")
|
35 |
return "Please Login to Hugging Face with the button.", None
|
36 |
|
37 |
+
api_url = "https://agents-course-unit4-scoring.hf.space"
|
38 |
questions_url = f"{api_url}/questions"
|
39 |
submit_url = f"{api_url}/submit"
|
40 |
|