Closed 0x000011b closed 1 year ago
hi @0x000011b , linebreak for Gradio's chatbot can be simply added by replacing \n
with <br>
.
I can help make a PR for this, is that okay?
Sure, that'd be super appreciated.
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.
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.