jlgaralc commited on
Commit
d472276
·
verified ·
1 Parent(s): 34cf00b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -147,15 +147,15 @@ def run_blast(arguments_string: str) -> str:
147
  final_answer = FinalAnswerTool()
148
 
149
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
150
- model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
151
 
152
  model = HfApiModel(
153
  max_tokens=36000,
154
  temperature=0.5,
155
- model_id=model_id,
156
  custom_role_conversions=None,
157
  )
158
- #model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
159
 
160
 
161
  # Import tool from Hub
@@ -166,7 +166,7 @@ with open("prompts.yaml", 'r') as stream:
166
 
167
  agent = CodeAgent(
168
  model=model,
169
- tools=[DuckDuckGoSearchTool(),run_blast,final_answer], ## add your tools here (don't remove final answer)
170
  max_steps=6,
171
  verbosity_level=1,
172
  grammar=None,
 
147
  final_answer = FinalAnswerTool()
148
 
149
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
150
+ # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
151
 
152
  model = HfApiModel(
153
  max_tokens=36000,
154
  temperature=0.5,
155
+ model_id=model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded,
156
  custom_role_conversions=None,
157
  )
158
+
159
 
160
 
161
  # Import tool from Hub
 
166
 
167
  agent = CodeAgent(
168
  model=model,
169
+ tools=[DuckDuckGoSearchTool(),run_blast, image_generation_tool,final_answer], ## add your tools here (don't remove final answer)
170
  max_steps=6,
171
  verbosity_level=1,
172
  grammar=None,