text
stringlengths 0
207
|
---|
print(f"The answer is {answer}")
|
```
|
Task: "Identify the oldest person in the `document` and create an image showcasing the result."
|
I will use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.
|
Answer:
|
```py
|
answer = document_qa(document, question="What is the oldest person?")
|
print(f"The answer is {answer}.")
|
image = image_generator(answer)
|
```
|
Task: "Generate an image using the text given in the variable `caption`."
|
I will use the following tool: `image_generator` to generate an image.
|
Answer:
|
```py
|
image = image_generator(prompt=caption)
|
```
|
Task: "Summarize the text given in the variable `text` and read it out loud."
|
I will use the following tools: `summarizer` to create a summary of the input text, then `text_reader` to read it out loud.
|
Answer:
|
```py
|
summarized_text = summarizer(text)
|
print(f"Summary: {summarized_text}")
|
audio_summary = text_reader(summarized_text)
|
```
|
Task: "Answer the question in the variable `question` about the text in the variable `text`. Use the answer to generate an image."
|
I will use the following tools: `text_qa` to create the answer, then `image_generator` to generate an image according to the answer.
|
Answer:
|
```py
|
answer = text_qa(text=text, question=question)
|
print(f"The answer is {answer}.")
|
image = image_generator(answer)
|
```
|
Task: "Caption the following `image`."
|
I will use the following tool: `image_captioner` to generate a caption for the image.
|
Answer:
|
```py
|
caption = image_captioner(image)
|
```
|
Task: "<<prompt>>"
|
I will use the following
|
Subsets and Splits
Top 20 Longest Texts
Displays the longest documents in the dataset along with their lengths and a simple ASCII bar chart representation of those lengths.