IvanLalala commited on
Commit
234f93e
·
verified ·
1 Parent(s): 18e621b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -39,16 +39,15 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
39
  custom_role_conversions=None,
40
  )
41
 
 
 
 
42
  agent = CodeAgent(
43
  model=model,
44
- tools=[final_answer,search_news], ## add your tools here (don't remove final answer)
45
  max_steps=6,
46
  verbosity_level=1,
47
- grammar=None,
48
- planning_interval=None,
49
- name=None,
50
- description=None,
51
- prompt_templates=prompt_templates
52
  )
53
 
54
 
 
39
  custom_role_conversions=None,
40
  )
41
 
42
+ with open("prompts.yaml", 'r') as stream:
43
+ prompt_templates = yaml.safe_load(stream) # <-- Сначала создаем переменную
44
+
45
  agent = CodeAgent(
46
  model=model,
47
+ tools=[final_answer, search_news],
48
  max_steps=6,
49
  verbosity_level=1,
50
+ prompt_templates=prompt_templates # <-- Теперь используем
 
 
 
 
51
  )
52
 
53