import gradio as gr | |
def generate_image(prompt): | |
# Logic to generate images with Stable Diffusion here | |
return "Generated image based on prompt: " + prompt | |
iface = gr.Interface( | |
fn=generate_image, | |
inputs="text", | |
outputs="image", | |
title="Stable Diffusion WebUI" | |
) | |
iface.launch() | |