Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Warn users when text is too short #13

Open
dmlls opened this issue Feb 16, 2022 · 0 comments
Open

Warn users when text is too short #13

dmlls opened this issue Feb 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@dmlls
Copy link
Member

dmlls commented Feb 16, 2022

The backend has been updated to the 0.0.2 version.

One of the changes is that now the backend will refuse to summarize very short texts (less than 20 words). The HTTP response in these cases is, e.g.:

422 Unprocesable Entity

{
    "detail": "source too short (<20 words)"
}

When this happens, the app has to let the users know somehow, encouraging the users to input a longer text. Probably for now a snackbar will do.

@dmlls dmlls added the enhancement New feature or request label Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant