Closed Jacoo520 closed 2 weeks ago
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
嗨,我们要求所有问题都用英语提交,以便团队能够理解和调试。你能翻译一下这个问题,我们可以重新开放吗?另外,您能否提供一个独立的最小代码示例,我们可以用它来重现上述问题?请参见: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?
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()
Describe the bug
Have you searched existing issues? 🔎
Reproduction
部分代码:
Screenshot
Logs
No response
System Info
Severity
I can work around it