Display an image before any inputs from the user?


Is it possible to display an image upon start, before users’ inputs?

I’m trying to find a way to put onto gradio the interface of a table-top robot simulator. That robot is actually interactive – you can give language commands and the robot will be able to have some reactions.

I think it is doable if I can display the first image of the simulator at first upon initialization, and take in user inputs, and use them to update the simulator and record the robot actions as a gif as output. However I didn’t really find a way to display that initial image.

Any ideas or any hacks?


Hi @yfzhoucs yes it’s possible to show a default value. Simply pass the path to the image into the value= parameter of gr.Image()