Gradio Button's function only takes in Gradio component as input?

When using ‘, inputs)’, Gradio’s document says inputs should be gradio.components or list of gradio.components.
But sometimes it is crucial to pass in an object which is not an gradio.component. For example, the invoked function takes in my custom class object.
Is there any way to input an object that is NOT gradio.component?

1 Like

hi, have you solved this problem yet?