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 a small feature in web_demo #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add a small feature in web_demo #9

wants to merge 1 commit into from

Conversation

thkkk
Copy link

@thkkk thkkk commented Mar 14, 2023

Added the function of pressing the enter key to generate an answer in web_demo

Added the function of pressing the enter key to generate an answer in web_demo
@lsvih
Copy link

lsvih commented Mar 14, 2023

This implementation will result in the predict function being called twice if the enter key and generate button are simultaneously pressed.

@duzx16
Copy link
Member

duzx16 commented Mar 17, 2023

I think this will confuse users if they want to give multi-line query.

@mengxinyuan638
Copy link

In my personal opinion, it's enough to have a button to generate an answer, but returning the answer by pressing Enter may cause unnecessary trouble

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.

4 participants