How to rename submit ,Flag and Generate Button in gradio interface
I used below code referenceimport gradio as grio = gr.Interface(lambda x: x, “textbox”, “textbox”)submit_btn_id = next(i for i,k in io.blocks.items() if getattr(k, “value”, None) == “Submit”)io.blocks[submit_btn_id].value = “Go”io.launch()but getting error “stop iteration” in My below codefig=gr.Interface(fn=display_image,title=“HINT Model Histogram”,description = “”,inputs =None,outputs=[gr.Image(type=“pil”, label=“HINT Model Histogram”)],)submit_btn_id = next(i for i,k in fig.blocks.items() if getattr(k, “value”, None) == “Submit”)fig.blocks[if (“value” == “Submit”)].value = “Click to view”fig.launch(share=True)