WileCoyotte commited on
Commit
fe324da
·
verified ·
1 Parent(s): c24a1ed

Update First_agent/app.py

Browse files
Files changed (1) hide show
  1. First_agent/app.py +2 -2
First_agent/app.py CHANGED
@@ -4,7 +4,7 @@ import datetime
4
  import pytz
5
  import yaml
6
  from .tools.final_answer import FinalAnswerTool
7
-
8
 
9
  from .Gradio_UI import GradioUI
10
 
@@ -96,11 +96,11 @@ def final():
96
  temperature=0.5,
97
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
98
  custom_role_conversions=None,
 
99
  )
100
 
101
 
102
  # Import tool from Hub
103
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
104
 
105
  with open("First_agent/prompts.yaml", 'r') as stream:
106
  prompt_templates = yaml.safe_load(stream)
 
4
  import pytz
5
  import yaml
6
  from .tools.final_answer import FinalAnswerTool
7
+ import os
8
 
9
  from .Gradio_UI import GradioUI
10
 
 
96
  temperature=0.5,
97
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
98
  custom_role_conversions=None,
99
+ token=os.getenv("token")
100
  )
101
 
102
 
103
  # Import tool from Hub
 
104
 
105
  with open("First_agent/prompts.yaml", 'r') as stream:
106
  prompt_templates = yaml.safe_load(stream)