Update app.py
Browse files91 unmodified lines9293949596979891 unmodified linesprint(f"Agent returning answer: {answer}")return answerdef compose_question_for_agent(task_id -> str, question_text -> str, question_file_name -> str) -> str:# Define the updated Jinja2 template with a conditional block to add information where file attachments can be found.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 %}"91 unmodified lines9293949596979891 unmodified linesprint(f"Agent returning answer: {answer}")return answerdef compose_question_for_agent(task_id: str, question_text: str, question_file_name: str) -> str:# Define the updated Jinja2 template with a conditional block to add information where file attachments can be found.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 %}"
app.py+1-1