import gradio as gr app = gr.Interface( fn=exec, inputs=["text"], outputs=["text"], ) app.launch()