Code Monkey home page Code Monkey logo

Comments (4)

tipani86 avatar tipani86 commented on May 26, 2024

Hi there @yippp thanks for the comments! I thought the scrolling bar was already there if the chat history becomes longer than the single browser view height?

image

Maybe if you can draw a simple image to explain what you mean?

Also, I thought when input is below the page, it looks like a real chat app. Think about WeChat, Whatsapp... pretty much any chat app the input is under the chat history, no?

from catgdp.

yippp avatar yippp commented on May 26, 2024

I'm sorry it seems like I didn't describe my idea clearly before. I appreciate you implementing an excellent dialogue interface on Streamlit, which has been helpful for my own projects. However, I believe the current page showing CatGDP still doesn't feel like a perfect dialogue function. I'm not sure if you have any ideas on how to achieve the following features:

Always keep the text input field at the bottom of the current page. When there is a long history of dialogue, you don't have to drag the scroll bar to type input directly.
Show the scroll bar only in the container of the dialogue history, rather than scrolling the entire interface.
These two points should be considered as a requirement, which is to limit the total height of the dialogue history record. Without scrolling the entire page, you can input new dialogues without having to scroll the entire interface. If the dialogue history is too long, only the dialogue history part will be scrolled.

I'm also trying to build a dialogue system based on LLM using Streamlit, and I highly appreciate the author's source code, which gave me many insights. If you have any ideas on how to achieve the above features, not only can it help me, but it can also make your CatGDP more excellent. Once again, thanks for your excellent project.

from catgdp.

tipani86 avatar tipani86 commented on May 26, 2024

Okay @yippp I understood what you mean. You want the text input to be fixed on the bottom and doesn't scroll with the rest of the view. I will have to think about how to do it in Streamlit... not sure if it's easy to do.

from catgdp.

tipani86 avatar tipani86 commented on May 26, 2024

Hi @yippp did you notice there was a new version from Streamlit that added a Chat Input element which always stays at the bottom of the screen? Check it out here: https://docs.streamlit.io/library/api-reference/chat/st.chat_input. Maybe you want to fix the CatGDP to use it instead of the current version? Feel free to contribute to the project and create a PR! :)

from catgdp.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.