yangminded commited on
Commit
1c36790
·
verified ·
1 Parent(s): f34d824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -74,7 +74,7 @@ class BasicAgent:
74
 
75
  print('*$% Original system prompt')
76
 
77
- print(self.agent.prompt_templates['system_prompt'])
78
 
79
  # Customize the system prompt for GAIA format.
80
  with open("prompts.yaml", 'r') as stream:
@@ -100,7 +100,6 @@ def compose_question_for_agent(task_id: str, question_text: str, question_file_n
100
  template = jinja2.Template(template_string)
101
 
102
  # --- Process the first JSON object (with a file) ---
103
- data_with_file = json.loads(json_with_file)
104
  result_with_file = template.render(data_with_file)
105
  composed_question = template.render(task_id=task_id, question_text=question_text, question_file_name=question_file_name)
106
  return composed_question
 
74
 
75
  print('*$% Original system prompt')
76
 
77
+ #print(self.agent.prompt_templates['system_prompt'])
78
 
79
  # Customize the system prompt for GAIA format.
80
  with open("prompts.yaml", 'r') as stream:
 
100
  template = jinja2.Template(template_string)
101
 
102
  # --- Process the first JSON object (with a file) ---
 
103
  result_with_file = template.render(data_with_file)
104
  composed_question = template.render(task_id=task_id, question_text=question_text, question_file_name=question_file_name)
105
  return composed_question