darrenphodgson76 commited on
Commit
1e2135d
·
verified ·
1 Parent(s): c917a01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,7 +37,8 @@ temperature=0.5,
37
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
38
  custom_role_conversions=None,
39
  )
40
-
 
41
 
42
  agent = CodeAgent(
43
  model=model,
@@ -48,7 +49,7 @@ agent = CodeAgent(
48
  planning_interval=None,
49
  name=None,
50
  description=None,
51
- prompt_templates=None
52
  )
53
 
54
 
 
37
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
38
  custom_role_conversions=None,
39
  )
40
+ with open("prompts.yaml", 'r') as stream:
41
+ prompt_templates = yaml.safe_load(stream)
42
 
43
  agent = CodeAgent(
44
  model=model,
 
49
  planning_interval=None,
50
  name=None,
51
  description=None,
52
+ prompt_templates=prompt_templates
53
  )
54
 
55