Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get Summarize model to work #10

Open
juanludlf opened this issue Jan 28, 2024 · 1 comment
Open

Cant get Summarize model to work #10

juanludlf opened this issue Jan 28, 2024 · 1 comment

Comments

@juanludlf
Copy link

Hello,

I'm testing Summarize model (https://aws.amazon.com/marketplace/pp/prodview-dkwy6chb63hk2).

When I run the following statements in SageMaker Studio:

text = """The error affected a number of international flights leaving the terminal on Wednesday, with some airlines urging passengers to travel only with hand luggage.
Virgin Atlantic said all airlines flying out of the terminal had been affected.
Passengers have been warned it may be days before they are reunited with luggage.
An airport spokesperson apologised and said the fault had now been fixed.
Virgin Atlantic said it would ensure all bags were sent out as soon as possible.
It added customers should retain receipts for anything they had bought and make a claim to be reimbursed.
Passengers, who were informed by e-mail of the problem, took to social media to vent their frustrations.
One branded the situation "ludicrous" and said he was only told 12 hours before his flight.
The airport said it could not confirm what the problem was, what had caused it or how many people had been affected."""

response = ai21.Summarize.execute(
                          source=text,
                          sourceType="TEXT",
                          destination=ai21.SageMakerDestination("summarize")
)

logger.info("Original text:")
logger.info(text)
logger.info("================")
logger.info("Summary:")
logger.info(response.summary)

I'm getting the following error:

{ "error": "Wordtune can't read this document" }

Am I missing something?
Thanks

@Josephasafg
Copy link

@juanludlf We tried to reproduce this using your example with both our old and new SDK version and couldn't.

May I ask which version are you using of our model in Sagemaker? 1.1.003 or 1.1.001?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants