| import subprocess | |
| import gradio as gr | |
| def run_comfyui(): | |
| process = subprocess.run(["python3", "ComfyUI/main.py"], capture_output=True, text=True) | |
| return process.stdout | |
| iface = gr.Interface(fn=run_comfyui, inputs=[], outputs="text", title="Lancer ComfyUI") | |
| iface.launch() | |