Dependent Inputs

Hello, I am curious if anyone has created a gradio app with dependent inputs. By “dependent inputs”, I would imagine something like two dropdown inputs, one for “movie genre” and one for “movie title”.

If a user were to select “comedy” as the movie genre, then the “movie title” dropdown would be limited to only display comedy titles. I don’t think there is any built in method to do this with Gradio, but curious if someone has thought of a workaround ?

Hey there! This should be possible with Gradio blocks which is getting released very soon. You can already play with it at 🙋 Community Feedback on Blocks (beta) · Issue #690 · gradio-app/gradio · GitHub and see an example interface (although it does not run due to gradio-unrelated issues) at Tortoisse Tts - a Hugging Face Space by osanseviero

Thanks so much! :grinning:

This is now possible with Gradio Blocks! Let us know if you have any questions!