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