import subprocess import gradio as gr import bot def ru(hi): #print(bot) x = print("hi " + hi) return x,subprocess.run("python3 bot.py",shell=True) gr.Interface(fn=ru,inputs="text",outputs="text",live=True).launch()