Hello Streamlit Community,
Iām reaching out for assistance regarding an issue Iāve encountered with displaying text in a streaming or typewriter effect on Streamlit. Before a major update by OpenAI in November 2023, I was able to implement a streaming mode for text display in my Streamlit applications, where each character of a chatbotās response would appear sequentially, simulating a live typing effect. This feature significantly enhanced the interactive experience for users by making the chatbot responses feel more dynamic and engaging.
However, following the OpenAI update in November 2023, this functionality has been impacted, and Iām no longer able to achieve the same streaming text display on Streamlit. It seems that changes in the update have affected how text updates can be incrementally displayed in the application.
Could anyone provide guidance, workarounds, or examples on how to restore this streaming text display functionality in Streamlit? Iām looking for a way to simulate the streaming or typewriter effect for chatbot responses, displaying text character by character with a slight delay between each, as it was before the OpenAI update.
Understanding that Streamlit reruns the entire script upon each interaction, Iām particularly interested in any solutions that allow for incremental text updates without requiring the script to rerun fully, or any advice on adapting to the changes brought by the OpenAI update.
I appreciate any suggestions, insights, or advice you can offer to help overcome this challenge and restore the streaming mode for text display in my Streamlit application.
Thank you in advance for your support!