ignatiev commited on
Commit
3a9177a
·
1 Parent(s): 7e9feed

fix: remove some side effects

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -111,7 +111,7 @@ class BasicAgent:
111
  description=(
112
  "An agent who can provide answers on questions by planning and delegating concrete tasks to more specific agents."
113
  "Follow principles:"
114
- "- IMPORTANT: Provide short and concrete final answer to the question."
115
  "\n"
116
  "- Provide to managed agents precise, clear and enhanced instructions with plan and examples how problem could be solved."
117
  "\n"
@@ -258,6 +258,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
258
  task_id = item.get("task_id")
259
  question_text = item.get("question")
260
  file_name = ""
 
261
  if item.get("file_name"):
262
  file_name = temp_dir + "/" + item.get("file_name")
263
  # Read the file content and encode it in base64
 
111
  description=(
112
  "An agent who can provide answers on questions by planning and delegating concrete tasks to more specific agents."
113
  "Follow principles:"
114
+ "- IMPORTANT: Provide short and concrete final answer to the question. Yes/No, 1 name or lists of names or words, or just a final number or date without any additional explanations."
115
  "\n"
116
  "- Provide to managed agents precise, clear and enhanced instructions with plan and examples how problem could be solved."
117
  "\n"
 
258
  task_id = item.get("task_id")
259
  question_text = item.get("question")
260
  file_name = ""
261
+ file_content_base64 = ""
262
  if item.get("file_name"):
263
  file_name = temp_dir + "/" + item.get("file_name")
264
  # Read the file content and encode it in base64