Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse files- prompts.yaml +0 -47
prompts.yaml
CHANGED
|
@@ -69,34 +69,6 @@
|
|
| 69 |
final_answer(summary)
|
| 70 |
```<end_code>
|
| 71 |
|
| 72 |
-
---
|
| 73 |
-
Task: "Find the current price of Bitcoin"
|
| 74 |
-
Thought: I should search for reliable cryptocurrency price sources and extract the current Bitcoin price.
|
| 75 |
-
Code:
|
| 76 |
-
```py
|
| 77 |
-
sources = web_search(query="Bitcoin current price USD coindesk coinmarketcap")
|
| 78 |
-
print(sources)
|
| 79 |
-
```<end_code>
|
| 80 |
-
Observation: [Search results with pricing sources]
|
| 81 |
-
|
| 82 |
-
Thought: I will visit the most reliable source to get the exact price.
|
| 83 |
-
Code:
|
| 84 |
-
```py
|
| 85 |
-
|
| 86 |
-
Task:
|
| 87 |
-
"Answer the question in the variable `question` about the image stored in the variable `image`. The question is in French.
|
| 88 |
-
You have been provided with these additional arguments, that you can access using the keys as variables in your python code:
|
| 89 |
-
{'question': 'Quel est l'animal sur l'image?', 'image': 'path/to/image.jpg'}"
|
| 90 |
-
|
| 91 |
-
Thought: I will use the following tools: `translator` to translate the question into English and then `image_qa` to answer the question on the input image.
|
| 92 |
-
Code:
|
| 93 |
-
```py
|
| 94 |
-
translated_question = translator(question=question, src_lang="French", tgt_lang="English")
|
| 95 |
-
print(f"The translated question is {translated_question}.")
|
| 96 |
-
answer = image_qa(image=image, question=translated_question)
|
| 97 |
-
final_answer(f"The answer is {answer}")
|
| 98 |
-
```<end_code>
|
| 99 |
-
|
| 100 |
---
|
| 101 |
Task:
|
| 102 |
In a 1979 interview, Stanislaus Ulam discusses with Martin Sherwin about other great physicists of his time, including Oppenheimer.
|
|
@@ -145,25 +117,6 @@
|
|
| 145 |
final_answer("diminished")
|
| 146 |
```<end_code>
|
| 147 |
|
| 148 |
-
---
|
| 149 |
-
Task: "Which city has the highest population: Guangzhou or Shanghai?"
|
| 150 |
-
|
| 151 |
-
Thought: I need to get the populations for both cities and compare them: I will use the tool `search` to get the population of both cities.
|
| 152 |
-
Code:
|
| 153 |
-
```py
|
| 154 |
-
for city in ["Guangzhou", "Shanghai"]:
|
| 155 |
-
print(f"Population {city}:", search(f"{city} population")
|
| 156 |
-
```<end_code>
|
| 157 |
-
Observation:
|
| 158 |
-
Population Guangzhou: ['Guangzhou has a population of 15 million inhabitants as of 2021.']
|
| 159 |
-
Population Shanghai: '26 million (2019)'
|
| 160 |
-
|
| 161 |
-
Thought: Now I know that Shanghai has the highest population.
|
| 162 |
-
Code:
|
| 163 |
-
```py
|
| 164 |
-
final_answer("Shanghai")
|
| 165 |
-
```<end_code>
|
| 166 |
-
|
| 167 |
---
|
| 168 |
Task: "What is the current age of the pope, raised to the power 0.36?"
|
| 169 |
|
|
|
|
| 69 |
final_answer(summary)
|
| 70 |
```<end_code>
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
---
|
| 73 |
Task:
|
| 74 |
In a 1979 interview, Stanislaus Ulam discusses with Martin Sherwin about other great physicists of his time, including Oppenheimer.
|
|
|
|
| 117 |
final_answer("diminished")
|
| 118 |
```<end_code>
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
---
|
| 121 |
Task: "What is the current age of the pope, raised to the power 0.36?"
|
| 122 |
|