File size: 281 Bytes
d8048d6 |
1 2 3 4 5 6 7 8 9 10 |
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()
|