import gradio as gr def greet(name): return "Hello " + name + "!!" from diffusers import DiffusionPipeline def jeu(texte): pipeline = DiffusionPipeline.from_pretrained("stablediffusionapi/anything-v5") pipeline.load_lora_weights("Kev09/Gojo") image = pipeline("A pokemon with blue eyes").images[0] img=gr.Image(image) return img iface = gr.Interface(fn=jeu, inputs="text", outputs="image") iface.launch()