fulyaertay commited on
Commit
09f4e46
·
verified ·
1 Parent(s): 0673d72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -52,10 +52,17 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
52
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
-
 
 
 
 
 
 
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
52
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
+
56
+ # DuckDuckGo arama aracı
57
+ search_tool = DuckDuckGoSearchTool()
58
+
59
+ # Görsel oluşturma aracı
60
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
61
+
62
+ # CodeAgent'e yeni araçları ekleyelim
63
  agent = CodeAgent(
64
  model=model,
65
+ tools=[final_answer, search_tool, image_generation_tool], # Yeni araçlar eklendi
66
  max_steps=6,
67
  verbosity_level=1,
68
  grammar=None,