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

copy button for the response? #2961

Closed
goyalyashpal opened this issue Jan 25, 2024 · 4 comments · Fixed by #2963
Closed

copy button for the response? #2961

goyalyashpal opened this issue Jan 25, 2024 · 4 comments · Fixed by #2963

Comments

@goyalyashpal
Copy link

goyalyashpal commented Jan 25, 2024

copy button for the response would help a lot. as currently, it requires selecting the "rendered" response from browser - due to which the underlying formatting (which i'd assume to be in markdown) is lost and the copy loses over 50% of its meaning in average cases.

anyhow, thanks a lot for this wonderful service.

@surak
Copy link
Collaborator

surak commented Jan 25, 2024

You can add show_copy_button=True to the ChatBot, like

  chatbot = gr.Chatbot(
            elem_id="chatbot",
            label="Scroll down and start chatting",
            height=550,
+           show_copy_button=True
        )

on the Gradio_web_server.py

@surak surak closed this as completed Jan 25, 2024
@surak
Copy link
Collaborator

surak commented Jan 25, 2024

Ah, you need a kinda recent gradio for that.

@goyalyashpal
Copy link
Author

hi! i meant on the website https://chat.lmsys.org

@surak surak mentioned this issue Jan 25, 2024
3 tasks
@surak
Copy link
Collaborator

surak commented Jan 25, 2024

I made the PR for you - but next time, you can do it yourself - check the PR #2963 above.

@surak surak reopened this Jan 25, 2024
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.

2 participants