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

Adopt streamlit's auto submit feature via ctrl+enter #1

Open
Xuanwo opened this issue Mar 8, 2023 · 1 comment
Open

Adopt streamlit's auto submit feature via ctrl+enter #1

Xuanwo opened this issue Mar 8, 2023 · 1 comment

Comments

@Xuanwo
Copy link

Xuanwo commented Mar 8, 2023

chatgpt-toolbox/main.py

Lines 31 to 32 in ee36426

if st.button('Improve my writing'):
if text == "":

Hello! Streamlit provides built-in support for using Ctrl+Enter to submit content. Perhaps we can modify the check here to allow it to work?

reference: https://docs.streamlit.io/library/api-reference/widgets/st.text_input

@Xuanwo
Copy link
Author

Xuanwo commented Mar 8, 2023

image

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 a pull request may close this issue.

1 participant