ilmarila commited on
Commit
55b26de
·
verified ·
1 Parent(s): 0678c0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -35,11 +35,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
- model = HfApiModel(
39
- max_tokens=2096,
40
- temperature=0.5,
41
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
42
- custom_role_conversions=None,
43
  )
44
 
45
 
@@ -50,15 +50,15 @@ with open("prompts.yaml", 'r') as stream:
50
  prompt_templates = yaml.safe_load(stream)
51
 
52
  agent = CodeAgent(
53
- model=model,
54
- tools=[final_answer], ## add your tools here (don't remove final answer)
55
- max_steps=6,
56
- verbosity_level=1,
57
- grammar=None,
58
- planning_interval=None,
59
- name=None,
60
- description=None,
61
- prompt_templates=prompt_templates
62
  )
63
 
64
 
 
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
+ model = HfApiModel(
39
+ max_tokens=2096,
40
+ temperature=0.5,
41
+ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
42
+ custom_role_conversions=None,
43
  )
44
 
45
 
 
50
  prompt_templates = yaml.safe_load(stream)
51
 
52
  agent = CodeAgent(
53
+ model=model,
54
+ tools=[final_answer], ## add your tools here (don't remove final answer)
55
+ max_steps=6,
56
+ verbosity_level=1,
57
+ grammar=None,
58
+ planning_interval=None,
59
+ name=None,
60
+ description=None,
61
+ prompt_templates=prompt_templates
62
  )
63
 
64