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

Add csv support #17

Merged
merged 1 commit into from
Jul 21, 2021
Merged

Add csv support #17

merged 1 commit into from
Jul 21, 2021

Conversation

philschmid
Copy link
Collaborator

what does this PR do?

This PR adds support for zero-code deployment with content-type text/csv. Test data can be found here https://docs.google.com/spreadsheets/d/1757Tw3KnUV_vATJG7esYEzOh0Al_XtFPPur6M7jB-d4/edit#gid=0.

This being said task zero-shot-classification and table-question-answering are not with text/csv due to incompatible structure of the request body. See here https://huggingface.co/docs/sagemaker/inference#inference-toolkit---api-description

Attention: To use text/csv the csv you send need to include column header corresponding to the dictionary key.
Example for text-classification sentiment-analysis token-classification feature-extraction fill-mask summarization translation_xx_to_yy text2text-generation text-generation

inputs
I like you.
I love you.

question-answering

question, context
where do I live?,My Name is Philipp and I live in Nuremberg.
where is Berlin?,Berlin is the capital of Germany.

Images of the test

Bildschirmfoto 2021-07-16 um 17 13 36
Bildschirmfoto 2021-07-16 um 16 43 11

Copy link
Contributor

@vdantu vdantu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philschmid
Copy link
Collaborator Author

I cannot merge it

@vdantu vdantu merged commit da070a2 into aws:main Jul 21, 2021
@philschmid philschmid deleted the add-csv-support branch July 21, 2021 06:35
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

Successfully merging this pull request may close these issues.

2 participants