Update app.py
Browse files
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
|
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 |
|