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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ class BasicAgent:
92
  print(f"Agent returning answer: {answer}")
93
  return answer
94
 
95
- def compose_question_for_agent(task_id -> str, question_text -> str, question_file_name -> str) -> str:
96
  # Define the updated Jinja2 template with a conditional block to add information where file attachments can be found.
97
  template_string = "{{ question_text }}{% if question_file_name %}\nThis question refers to a file. You can find the URL of the file by performing a REST API GET request at https://agents-course-unit4-scoring.hf.space/files/{{ task_id }}{% endif %}"
98
 
 
92
  print(f"Agent returning answer: {answer}")
93
  return answer
94
 
95
+ def compose_question_for_agent(task_id: str, question_text: str, question_file_name: str) -> str:
96
  # Define the updated Jinja2 template with a conditional block to add information where file attachments can be found.
97
  template_string = "{{ question_text }}{% if question_file_name %}\nThis question refers to a file. You can find the URL of the file by performing a REST API GET request at https://agents-course-unit4-scoring.hf.space/files/{{ task_id }}{% endif %}"
98