Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,6 @@ from smolagents import (
|
|
| 15 |
import datetime
|
| 16 |
import requests
|
| 17 |
import pytz
|
| 18 |
-
import yaml
|
| 19 |
from bs4 import BeautifulSoup
|
| 20 |
from tools.final_answer import FinalAnswerTool
|
| 21 |
|
|
@@ -242,9 +241,6 @@ model = HFModel(
|
|
| 242 |
|
| 243 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 244 |
|
| 245 |
-
with open("prompts.yaml", 'r') as stream:
|
| 246 |
-
prompt_templates = yaml.safe_load(stream)
|
| 247 |
-
|
| 248 |
agent = CodeAgent(
|
| 249 |
model=model,
|
| 250 |
tools=[
|
|
@@ -261,7 +257,6 @@ agent = CodeAgent(
|
|
| 261 |
planning_interval=None,
|
| 262 |
name=None,
|
| 263 |
description=None,
|
| 264 |
-
prompt_templates=prompt_templates,
|
| 265 |
)
|
| 266 |
|
| 267 |
GradioUI(agent).launch()
|
|
|
|
| 15 |
import datetime
|
| 16 |
import requests
|
| 17 |
import pytz
|
|
|
|
| 18 |
from bs4 import BeautifulSoup
|
| 19 |
from tools.final_answer import FinalAnswerTool
|
| 20 |
|
|
|
|
| 241 |
|
| 242 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 243 |
|
|
|
|
|
|
|
|
|
|
| 244 |
agent = CodeAgent(
|
| 245 |
model=model,
|
| 246 |
tools=[
|
|
|
|
| 257 |
planning_interval=None,
|
| 258 |
name=None,
|
| 259 |
description=None,
|
|
|
|
| 260 |
)
|
| 261 |
|
| 262 |
GradioUI(agent).launch()
|