import gradio as gr import os repo_id = "stabilityai/stable-diffusion-xl-base-0.9" hf_token="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" os.environ.get("HF_TOKEN") #stabilityai/stable-diffusion-xl-refiner-0.9 #client = Client.duplicate("stabilityai/stable-diffusion-xl-base-0.9") gr.Blocks = factory_methods["stabilityai/stable-diffusion-xl-base-0.9"](name="leonel", hf_****=hf_token) gr.launch()