Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,18 @@
|
|
| 1 |
# from smolagents import DuckDuckGoSearchTool, load_tool,tool
|
| 2 |
|
| 3 |
import sys
|
| 4 |
-
# import datetime
|
| 5 |
import time
|
| 6 |
import yaml
|
| 7 |
import os
|
| 8 |
import pytz # Had to give it permission in Code agent
|
| 9 |
|
| 10 |
from ui.contentagentui import ContentAgentUI
|
| 11 |
-
# from ui.gradioui import GradioUI
|
| 12 |
|
| 13 |
from smolagents import CodeAgent, InferenceClientModel
|
| 14 |
from status_check import resolve_endpoint, is_endpoint_healthy
|
| 15 |
|
| 16 |
from tools.tools import load_tools
|
| 17 |
-
from prompts import load_prompts
|
| 18 |
|
| 19 |
def initialize_agent(endpoint_uri: str):
|
| 20 |
|
|
|
|
| 1 |
# from smolagents import DuckDuckGoSearchTool, load_tool,tool
|
| 2 |
|
| 3 |
import sys
|
|
|
|
| 4 |
import time
|
| 5 |
import yaml
|
| 6 |
import os
|
| 7 |
import pytz # Had to give it permission in Code agent
|
| 8 |
|
| 9 |
from ui.contentagentui import ContentAgentUI
|
|
|
|
| 10 |
|
| 11 |
from smolagents import CodeAgent, InferenceClientModel
|
| 12 |
from status_check import resolve_endpoint, is_endpoint_healthy
|
| 13 |
|
| 14 |
from tools.tools import load_tools
|
| 15 |
+
from prompts.prompts import load_prompts
|
| 16 |
|
| 17 |
def initialize_agent(endpoint_uri: str):
|
| 18 |
|