imaginarycrayon423 commited on
Commit
3916e8d
·
verified ·
1 Parent(s): 753b040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
@@ -44,6 +45,7 @@ max_tokens=2096,
44
  temperature=0.5,
45
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
46
  custom_role_conversions=None,
 
47
  )
48
 
49
 
@@ -62,7 +64,8 @@ agent = CodeAgent(
62
  planning_interval=None,
63
  name=None,
64
  description=None,
65
- prompt_templates=prompt_templates
 
66
  )
67
 
68
  print(
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ import os
8
 
9
  from Gradio_UI import GradioUI
10
 
 
45
  temperature=0.5,
46
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
47
  custom_role_conversions=None,
48
+ token=os.getenv['API_KEY']
49
  )
50
 
51
 
 
64
  planning_interval=None,
65
  name=None,
66
  description=None,
67
+ prompt_templates=prompt_templates,
68
+
69
  )
70
 
71
  print(