import subprocess command = "python educhat_gradio.py --model_path ecnu-icalk/educhat-base-002-7b --top_k 50 --do_sample True --max_new_tokens 512" subprocess.Popen(command, shell=True)