Image-Text-to-Text
Transformers
Safetensors
English
florence2
text-generation
art
custom_code
gokaygokay commited on
Commit
178fd61
1 Parent(s): 42de3b7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -50,7 +50,9 @@ import copy
50
 
51
  url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg?download=true"
52
  image = Image.open(requests.get(url, stream=True).raw)
53
- run_example("<DESCRIPTION>", "Describe this image in great detail.", image)
 
 
54
 
55
- # {'<DESCRIPTION>': 'Captured at eye-level on a sunny day, a light blue Volkswagen Beetle is parked on a cobblestone street. The beetle is parked in front of a yellow building with two brown doors. The door on the right side of the frame is white, while the left side is a darker shade of blue. The car is facing the camera, and the car is positioned in the middle of the street.'}
56
  ```
 
50
 
51
  url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg?download=true"
52
  image = Image.open(requests.get(url, stream=True).raw)
53
+ answer = run_example("<DESCRIPTION>", "Describe this image in great detail.", image)
54
+ final_answer = answer['<DESCRIPTION>']
55
+ print(final_answer)
56
 
57
+ # 'Captured at eye-level on a sunny day, a light blue Volkswagen Beetle is parked on a cobblestone street. The beetle is parked in front of a yellow building with two brown doors. The door on the right side of the frame is white, while the left side is a darker shade of blue. The car is facing the camera, and the car is positioned in the middle of the street.'
58
  ```