Spaces:
Running
Running
geadmin
commited on
Commit
·
7a8794c
1
Parent(s):
2075a30
update model id to qwen, because of 401 error
Browse files
app.py
CHANGED
|
@@ -14,7 +14,8 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 14 |
class BasicAgent:
|
| 15 |
def __init__(self):
|
| 16 |
print("BasicAgent initialized.")
|
| 17 |
-
self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel(
|
|
|
|
| 18 |
|
| 19 |
def __call__(self, question: str) -> str:
|
| 20 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
|
| 14 |
class BasicAgent:
|
| 15 |
def __init__(self):
|
| 16 |
print("BasicAgent initialized.")
|
| 17 |
+
self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel(
|
| 18 |
+
model_id = 'https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'))
|
| 19 |
|
| 20 |
def __call__(self, question: str) -> str:
|
| 21 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|