Views
No views yet
1# Use a pipeline as a high-level helper
2from transformers import pipeline
3
4pipe = pipeline("image-to-text", model="mrSoul7766/git-base-instagram-cap")
5
6# Generate caption
7caption = pipe("/content/download (12).png",max_new_tokens =100)
8
9# Print the generated answer
10print(caption[0]['generated_text'])i love my blonde character in kim kardashian hollywood! i'm playing now who's playing with me?