PygmalionAI / gradio-ui

Prototype UI for chatting with the Pygmalion models.
GNU Affero General Public License v3.0
225 stars 66 forks source link

Consider handling paragraphs/line breaks #4

Closed 0x000011b closed 1 year ago

0x000011b commented 1 year ago

Currently, Gradio's chatbot component eats up the newlines that the model generates. I believe it can also receive and render HTML instead of raw text, so consider wrapping up each line in <p> tags and check if it improves readability.

conanak99 commented 1 year ago

hi @0x000011b , linebreak for Gradio's chatbot can be simply added by replacing \n with <br>.

image

I can help make a PR for this, is that okay?

0x000011b commented 1 year ago

Sure, that'd be super appreciated.

conanak99 commented 1 year ago

Sure, that'd be super appreciated.

I'm happy to help, made a pull request here https://github.com/PygmalionAI/gradio-ui/pull/34 :D Tested the change by running new code in collab.