Comments (3)
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.
嗨,我们要求所有问题都用英语提交,以便团队能够理解和调试。你能翻译一下这个问题,我们可以重新开放吗?另外,您能否提供一个独立的最小代码示例,我们可以用它来重现上述问题?请参见: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.
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)
- Got stuck when using ffmpeg to covert mp3 to wav with gr.Audio inputs
- TabbedInterface Error: the 'clear' and 'submit' of the second tab will operate the first tab HOT 1
- UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in position 822129: illegal multibyte sequence HOT 1
- Issue with Mounting Multiple Gradio Interfaces using gr.mount_gradio_app HOT 4
- Gradio `4.32.x` broke mobile scrolling on Spaces 🚨 HOT 1
- Add flagging features into ChatInterface same as interface
- How to modify State(list) to trigger State.change() HOT 1
- Broken IPv6 in Docker Container
- TabbedInterface does not work properly HOT 1
- gradio output are blank HOT 1
- Showing Mesh Wireframe in Model3D HOT 5
- Gradio Endpoint Time Out Issue HOT 3
- Need VTK format Suppt HOT 2
- Sliders on Firefox look different than Chrome HOT 2
- The `/call/{api_name}` route does not handle state correctly
- 404 Assets Not Found Error with OAuth2 Gradio on Localhost
- Support pandas Styler in input Dataframes
- Add API Recorder support for `curl`
- Show Point Cloud in Model3D
- When using two textboxes in same blocks, if the first textbox is set to interactive=false, the second textbox also becomes disabled. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradio.