beyzapehlivan commited on
Commit
6a3b6b0
·
verified ·
1 Parent(s): 6bb6b06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -16,13 +16,12 @@ model = HfApiModel(model_id="Qwen/Qwen2.5-72B-Instruct", token=token)
16
 
17
  class AlfredAgent:
18
  def __init__(self):
19
- # VisitWebpageTool: Web sayfalarının içeriğini okumasını sağlar.
20
- # DuckDuckGoSearchTool: Arama yapmasını sağlar.
21
- self.agent = CodeAgent(
22
- tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
23
- model=model,
24
- max_steps=12, # Adım sayısını artırdık
25
- add_base_tools=True
26
  )
27
  print("AlfredAgent başarıyla kuruldu.")
28
 
 
16
 
17
  class AlfredAgent:
18
  def __init__(self):
19
+ # Tüm bu satırlar def __init__'in bir tık sağında ve aynı hizada olmalı
20
+ self.agent = CodeAgent(
21
+ tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
22
+ model=model,
23
+ max_steps=12,
24
+ add_base_tools=True
 
25
  )
26
  print("AlfredAgent başarıyla kuruldu.")
27