This is the image:
This is my prompt:
# Start the chat session
chat_session = model.start_chat(
history=[
{
"role": "user",
"parts": [
files[0],
],
},
]
)
# Send a message and print the response
response = chat_session.send_message("Extract the text from this file. Exclude strikethrough words. A strikethrough is a horizontal line drawn through text, used to indicate the deletion of an error or the removal of text. Do not extract any word formatted with a horizontal line through its center.")
print(response.text)
Response:
- Sick Leave
Modify Article 9 of the Local #161 Motion Picture Theatrical and TV Series Production Agreement (and make conforming changes to Article 41 of the Local #161 Supplemental Digital Agreement) as follows:
"ARTICLE 9. WAIVER OF NEW YORK CITY EARNED SICK TIME ACT AND SIMILAR LAWS SICK LEAVE
"(a) Paid Sick Leave in the State of New York: The following is applicable only to employees working under this Agreement in the State of New York:
"(1) Commencing [insert the date that is the first Sunday after 30 days following the AMPTP’s receipt of notice of ratification], employees shall accrue one (1)
No matter what I try, Flash or Pro model. If it’s multi-modal and looking at this image visually, why can’t it recognize and act on the strikethrough text?
To be clear, this:
"ARTICLE 9. WAIVER OF NEW YORK CITY EARNED SICK TIME ACT AND SIMILAR LAWS SICK LEAVE
Should be returned as this:
"ARTICLE 9. SICK LEAVE
How do I fix this?