Gradio flow control

Folks,

for context, I am interested in using gradio to build a webapp for a personal project.
i have built an interface 1 when uses arrive at the landing page.
Is there a way for me to clear the current interface redirect to the next interface (app_intef) based on user selection?

import gradio as gr

engines = {
‘app1’:‘engine1’,
‘app2’:‘engine2’,
‘app3’:‘engine3’
}

def exec_engine(application):
return engines[application]

with gr.Blocks() as app_intef:
app = gr.Textbox(label=‘engine’)

with gr.Blocks() as interface:
application = gr.Dropdown(choices=[‘app1’, ‘app2’, ‘app3’], label=‘application’)
submit_btn = gr.Button(‘Submit’)
submit_btn.click(exec_engine, inputs=application, outputs=app)
interface.launch()