Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# This template has been modified to use OpenAIServerMdoel for custom API endpoints
|
2 |
# To use, be sure to update your requirements to import smolagents[openai]==1.13.0
|
3 |
|
4 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool,
|
5 |
import datetime
|
6 |
import requests
|
7 |
import pytz
|
|
|
1 |
# This template has been modified to use OpenAIServerMdoel for custom API endpoints
|
2 |
# To use, be sure to update your requirements to import smolagents[openai]==1.13.0
|
3 |
|
4 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, OpenAIServerModel, load_tool, tool # New Import OpenAIServerModel, removed HfApiModel
|
5 |
import datetime
|
6 |
import requests
|
7 |
import pytz
|