Updated Prompt.yaml
Browse files- prompts.yaml +9 -2
prompts.yaml
CHANGED
@@ -21,11 +21,16 @@
|
|
21 |
```<end_code>
|
22 |
Observation: "The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland."
|
23 |
|
24 |
-
Thought: I will now generate an image showcasing the oldest person.
|
25 |
Code:
|
26 |
```py
|
|
|
27 |
image = image_generator("A portrait of John Doe, a 55-year-old man living in Canada.")
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
```<end_code>
|
30 |
|
31 |
---
|
@@ -170,6 +175,8 @@
|
|
170 |
8. You can use imports in your code, but only from the following list of modules: {{authorized_imports}}
|
171 |
9. The state persists between code executions: so if in one step you've created variables or imported modules, these will all persist.
|
172 |
10. Don't give up! You're in charge of solving the task, not providing directions to solve it.
|
|
|
|
|
173 |
|
174 |
Now Begin! If you solve the task correctly, you will receive a reward of $1,000,000.
|
175 |
"planning":
|
|
|
21 |
```<end_code>
|
22 |
Observation: "The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland."
|
23 |
|
24 |
+
Thought: I will now generate an image showcasing the oldest person, save it to a file, and return the file path.
|
25 |
Code:
|
26 |
```py
|
27 |
+
# First, generate the image object
|
28 |
image = image_generator("A portrait of John Doe, a 55-year-old man living in Canada.")
|
29 |
+
# Second, save the image object to a file with a .png extension
|
30 |
+
image_path = "john_doe_portrait.png"
|
31 |
+
image.save(image_path)
|
32 |
+
# Finally, return the file path string as the final answer
|
33 |
+
final_answer(image_path)
|
34 |
```<end_code>
|
35 |
|
36 |
---
|
|
|
175 |
8. You can use imports in your code, but only from the following list of modules: {{authorized_imports}}
|
176 |
9. The state persists between code executions: so if in one step you've created variables or imported modules, these will all persist.
|
177 |
10. Don't give up! You're in charge of solving the task, not providing directions to solve it.
|
178 |
+
11. When using the image_generator tool, you MUST save the resulting image object to a file (e.g., 'my_image.png'). Your final answer must then be the string of the file path, not the image object itself.
|
179 |
+
|
180 |
|
181 |
Now Begin! If you solve the task correctly, you will receive a reward of $1,000,000.
|
182 |
"planning":
|