Code Monkey home page Code Monkey logo

Comments (6)

abidlabs avatar abidlabs commented on August 29, 2024

Hi @davidberenstein1957 sorry I didn't understand, can you elaborate what the issue is? In your screenshot, it looks like the accordion is expanded, no?

from gradio.

davidberenstein1957 avatar davidberenstein1957 commented on August 29, 2024

Hi @aliabid94, It is collapsed by default and according to the docs it should not be an accordion at all. I think having the accordion collapsed by default makes it a bit useless for chat interactionsbut I guess it inherits the behavior from the agent tool information accordion? Would it be possible to add an additional flag to the Metadata to control this? "expanded=True" or something?

from gradio.

freddyaboulton avatar freddyaboulton commented on August 29, 2024

ah the image linked in the docs is outdated, will fix. We designed the accordion for tool responses which is why they are closed by default. If you want to add a general title for your message, I think you can use include it as a markdown header in your response.

from gradio.

davidberenstein1957 avatar davidberenstein1957 commented on August 29, 2024

from gradio.

abidlabs avatar abidlabs commented on August 29, 2024

Slight tangent: but one thing that I think we should do is make the accordion open by default if its the last message in the chatbot history. That creates a nice effect that while a message is streaming, you can see the tool use, but once its finished, it doesn't take up unnecessary space. Not sure whether that would be sufficient for you @davidberenstein1957?

from gradio.

davidberenstein1957 avatar davidberenstein1957 commented on August 29, 2024

from gradio.

Related Issues (20)

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.