import subprocess import gradio as gr def n(hi): x = hi +" hi!" return x,subprocess.run("python3 bot.py",shell=True) gr.Interface(fn=n, inputs="text",outputs=["text","text"],live=True).launch(debug=True)