Spaces:
Paused
Paused
ffreemt
commited on
Commit
·
c4b95b3
1
Parent(s):
ba67956
Update mcp.StdioServerParameters smolagents.LiteLLMRouterModel wikipediaapi
Browse files- app.py +2 -2
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -21,7 +21,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 21 |
|
| 22 |
# y(os.environ)
|
| 23 |
y(DEFAULT_API_URL)
|
| 24 |
-
y(os.getenv("SPACE_ID"))
|
| 25 |
|
| 26 |
# --- Basic Agent Definition ---
|
| 27 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
|
@@ -75,7 +75,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 75 |
print("Fetched questions list is empty.")
|
| 76 |
return "Fetched questions list is empty or invalid format.", None
|
| 77 |
print(f"Fetched {len(questions_data)} questions.")
|
| 78 |
-
|
| 79 |
except requests.exceptions.RequestException as e:
|
| 80 |
print(f"Error fetching questions: {e}")
|
| 81 |
return f"Error fetching questions: {e}", None
|
|
|
|
| 21 |
|
| 22 |
# y(os.environ)
|
| 23 |
y(DEFAULT_API_URL)
|
| 24 |
+
y(os.getenv("SPACE_ID")) # mikeee/final-assignment
|
| 25 |
|
| 26 |
# --- Basic Agent Definition ---
|
| 27 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
|
|
|
| 75 |
print("Fetched questions list is empty.")
|
| 76 |
return "Fetched questions list is empty or invalid format.", None
|
| 77 |
print(f"Fetched {len(questions_data)} questions.")
|
| 78 |
+
|
| 79 |
except requests.exceptions.RequestException as e:
|
| 80 |
print(f"Error fetching questions: {e}")
|
| 81 |
return f"Error fetching questions: {e}", None
|
requirements.txt
CHANGED
|
@@ -5,3 +5,4 @@ loguru
|
|
| 5 |
ycecream
|
| 6 |
mcpadapt
|
| 7 |
smolagents@git+https://github.com/huggingface/smolagents.git
|
|
|
|
|
|
| 5 |
ycecream
|
| 6 |
mcpadapt
|
| 7 |
smolagents@git+https://github.com/huggingface/smolagents.git
|
| 8 |
+
wikipediaapi
|