I’m new in gradio and would like to know if someone can help me.
I want to add a hidden figure component in my app, and when the button is click, I want to update the figure component and make it visible, and then show my output in the figure component.
I have seen some examples, however, some of them do the execution and then the figure component is updated.
I want to start the execution, make visible the component, wait for the results and then show it in the visible component.
Is that possible?
Thanks for the help
I could solve it using the then method.
I left a similar example in case someone need it.
import gradio as gr
counter = 1
output_text = "Hello, " + input_text + "!"
counter += 1
with gr.Blocks() as demo:
# column for inputs
input_text = gr.Textbox(label="Input Text")
submit_button = gr.Button("Submit")
# column for outputs
output_text = gr.Textbox(visible=False)