Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def create_agent():
|
|
| 9 |
Adjust parameters like model type or configuration as needed.
|
| 10 |
"""
|
| 11 |
# For example, we initialize an Agent with a sample model
|
| 12 |
-
agent =
|
| 13 |
return agent
|
| 14 |
|
| 15 |
# Create the agent instance once so that it persists across user interactions
|
|
|
|
| 9 |
Adjust parameters like model type or configuration as needed.
|
| 10 |
"""
|
| 11 |
# For example, we initialize an Agent with a sample model
|
| 12 |
+
agent = CodeAgent(tools=[], model=HfApiModel(model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/')) # Change arguments as per your agent configuration
|
| 13 |
return agent
|
| 14 |
|
| 15 |
# Create the agent instance once so that it persists across user interactions
|