cowrycode commited on
Commit
288726a
·
verified ·
1 Parent(s): 5bbd798

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ class BasicAgent:
36
  # [wikipedia_search_tool, youtube_transcript_tool, youtube_transcript_snippet_tool, round_to_two_decimals_tool, text_inverter_tool, google_web_search_tool],
37
  # llm=self.llm,
38
  # )
39
- system_prompt = (
40
  "You are a helpful AI assistant completing GAIA benchmark tasks.\n"
41
  "You MUST use the tools provided to answer the user's question. Do not answer from your own knowledge.\n"
42
  "Carefully analyze the question to determine the most appropriate tool to use.\n"
@@ -60,7 +60,7 @@ class BasicAgent:
60
  wikipedia_search_tool, youtube_transcript_tool, youtube_transcript_snippet_tool, round_to_two_decimals_tool, text_inverter_tool, google_web_search_tool,transcribe_audio_tool, excel_food_sales_sum_tool, parse_file_and_summarize_tool, solve_chess_image_tool, vegetable_classifier_tool
61
  ],
62
  llm=self.llm,
63
- system_prompt=system_prompt,
64
  verbose=True,
65
  )
66
  async def run(self, question: str) -> str:
 
36
  # [wikipedia_search_tool, youtube_transcript_tool, youtube_transcript_snippet_tool, round_to_two_decimals_tool, text_inverter_tool, google_web_search_tool],
37
  # llm=self.llm,
38
  # )
39
+ self.system_prompt = (
40
  "You are a helpful AI assistant completing GAIA benchmark tasks.\n"
41
  "You MUST use the tools provided to answer the user's question. Do not answer from your own knowledge.\n"
42
  "Carefully analyze the question to determine the most appropriate tool to use.\n"
 
60
  wikipedia_search_tool, youtube_transcript_tool, youtube_transcript_snippet_tool, round_to_two_decimals_tool, text_inverter_tool, google_web_search_tool,transcribe_audio_tool, excel_food_sales_sum_tool, parse_file_and_summarize_tool, solve_chess_image_tool, vegetable_classifier_tool
61
  ],
62
  llm=self.llm,
63
+ system_prompt=self.system_prompt,
64
  verbose=True,
65
  )
66
  async def run(self, question: str) -> str: