Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 21 |
model = InferenceClientModel() #D
|
| 22 |
|
| 23 |
#Agent
|
| 24 |
-
|
| 25 |
|
| 26 |
class BasicAgent:
|
| 27 |
def __init__(self):
|
|
@@ -55,7 +55,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 55 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 56 |
try:
|
| 57 |
#agent = BasicAgent()
|
| 58 |
-
agent =
|
| 59 |
except Exception as e:
|
| 60 |
print(f"Error instantiating agent: {e}")
|
| 61 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 21 |
model = InferenceClientModel() #D
|
| 22 |
|
| 23 |
#Agent
|
| 24 |
+
code_agent = CodeAgent(tools=[], model=model)
|
| 25 |
|
| 26 |
class BasicAgent:
|
| 27 |
def __init__(self):
|
|
|
|
| 55 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 56 |
try:
|
| 57 |
#agent = BasicAgent()
|
| 58 |
+
agent = code_agent
|
| 59 |
except Exception as e:
|
| 60 |
print(f"Error instantiating agent: {e}")
|
| 61 |
return f"Error initializing agent: {e}", None
|