Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
8 |
|
9 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
10 |
space_id = os.getenv("SPACE_ID")
|
11 |
-
api_key = os.getenv("OPENAI_API_KEY")
|
12 |
|
13 |
if profile:
|
14 |
username = f"{profile.username}"
|
@@ -22,7 +21,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
22 |
submit_url = f"{api_url}/submit"
|
23 |
|
24 |
try:
|
25 |
-
agent = GaiaAgent(
|
26 |
except Exception as e:
|
27 |
return f"Error initializing agent: {e}", None
|
28 |
|
@@ -94,7 +93,7 @@ with gr.Blocks() as demo:
|
|
94 |
gr.Markdown("# GAIA Agent Submission Interface")
|
95 |
gr.Markdown("""
|
96 |
Logga in och kör agenten.\n
|
97 |
-
Du behöver
|
98 |
""")
|
99 |
gr.LoginButton()
|
100 |
|
|
|
8 |
|
9 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
10 |
space_id = os.getenv("SPACE_ID")
|
|
|
11 |
|
12 |
if profile:
|
13 |
username = f"{profile.username}"
|
|
|
21 |
submit_url = f"{api_url}/submit"
|
22 |
|
23 |
try:
|
24 |
+
agent = GaiaAgent()
|
25 |
except Exception as e:
|
26 |
return f"Error initializing agent: {e}", None
|
27 |
|
|
|
93 |
gr.Markdown("# GAIA Agent Submission Interface")
|
94 |
gr.Markdown("""
|
95 |
Logga in och kör agenten.\n
|
96 |
+
Du behöver INTE en OpenAI API-nyckel längre. Agenten kör en lokal modell.
|
97 |
""")
|
98 |
gr.LoginButton()
|
99 |
|