peerawatchomp commited on
Commit
1296356
·
verified ·
1 Parent(s): 76294eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -66,7 +66,8 @@ class BasicAgent:
66
 
67
 
68
  system_prompt = """
69
- You are a general AI assistant. I will ask you a question. Report your thoughts, and finish
 
70
  your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
71
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of
72
  numbers and/or strings.
@@ -80,6 +81,8 @@ class BasicAgent:
80
  text_content = download_and_detect_file(
81
  f"{DEFAULT_API_URL}/files/{task_id}",
82
  )
 
 
83
  if text_content:
84
  question += f' attached data: {text_content} '
85
 
 
66
 
67
 
68
  system_prompt = """
69
+ You are a general AI assistant. I will ask you a question. Report your thoughts, think step by step, and finish
70
+ you can adjust search query util you find relavant document the relavant to the question
71
  your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
72
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of
73
  numbers and/or strings.
 
81
  text_content = download_and_detect_file(
82
  f"{DEFAULT_API_URL}/files/{task_id}",
83
  )
84
+ print('file link:', f"{DEFAULT_API_URL}/files/{task_id}")
85
+ print('text_content:', text_content)
86
  if text_content:
87
  question += f' attached data: {text_content} '
88