import gradio as gr def gen_image(prompt,model_name,count = 1): proc=gr.load(f"models/{model_name}") t=0 output_list=[] while t