Giter Club home page Giter Club logo

Comments (3)

abidlabs avatar abidlabs commented on May 23, 2024

Hi @Jacoo520 we require all issues to be submitted in English so that the team can understand and debug. Can you please translate the issue and we can reopen? Also can you please provide a standalone minimal code example that we can use to reproduce the issue above? See: https://stackoverflow.com/help/minimal-reproducible-example

from gradio.

Jacoo520 avatar Jacoo520 commented on May 23, 2024

嗨,我们要求所有问题都用英语提交,以便团队能够理解和调试。你能翻译一下这个问题,我们可以重新开放吗?另外,您能否提供一个独立的最小代码示例,我们可以用它来重现上述问题?请参见:https://stackoverflow.com/help/minimal-reproducible-example

I'm working on a chat interface to add a drop-down menu, but this drop-down menu is collapsed when it is displayed, I just want the drop-down menu to be displayed in the layout normally, not collapsed by default, and is it possible to put the additional drop-down menu components on top? or can this layout only be done using Blocks?

from gradio.

abidlabs avatar abidlabs commented on May 23, 2024

You can combine Blocks and ChatInterface to get this effect, e.g.

import gradio as gr

with gr.Blocks() as demo:
    dropdown = gr.Dropdown(["a", "b"])
    gr.ChatInterface(lambda x,y,z:x+z, additional_inputs=dropdown)
    
demo.launch()

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.