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

Online demo update #10

Open
ivanakcheurov opened this issue May 10, 2020 · 0 comments
Open

Online demo update #10

ivanakcheurov opened this issue May 10, 2020 · 0 comments

Comments

@ivanakcheurov
Copy link
Owner

The online demo webpage needs to be updated.
Requirements:

  • should have a header
  • should have a text area
  • should have button "Get language" which identifies the language of the text in the text area (POST to a remote API).
    • (nice to have) if 3 seconds have passed after the last time the user has finished typing the last character and if this text has not been sent to the identification API yet, then start the identification process automatically (send to the API and update the status accordingly).
      • the visual effect of the automatic identification is the same as when hitting the button.
  • should have a status label:
    • it is blank at the start
    • when the identification process has started, it shows "Identifying the language of the text...".
      • (nice to have) the label would shows a spinner ("washing machine") icon which indicates the request is in progress.
    • when there is a result, it says "The language of the text is eng" (or another 3-letter code).
    • when there is an error, it renders the text of the error from the JSON in red.
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

1 participant