Gradio flow control


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 = {

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’), inputs=application, outputs=app)