import gradio as gr def execute(code, lang): match lang: case "Python": return "Python case _: return f"Code : {str(code)}\nTypeof lang : {str(type(lang))}\nLanguage : {str(lang)}" demo = gr.Interface( fn=execute, inputs=[ gr.Textbox( show_label=True, label="Code", max_lines=4_294_967_295, lines=4_294_967_295, ), gr.Dropdown( show_label=True, label="Language", choices=["Python"], ), ], outputs=gr.Textbox(label="Result") ) demo.launch(debug=True)