def get_images(jpg_path):
images = []
for jpg_image in os.listdir(f"{jpg_path}"):
try:
images.append((f"{jpg_path}\\{jpg_image}", f"{jpg_image}"))
except Exception as e:
print(f"{jpg_path}\\{jpg_image}", e)
return images
gallery = gr.Gallery(label=gallery_label, show_label=True, elem_id=f"ats-gallery-{prompt_path}-{jpg_path}").style(grid=[5], height="auto")
btn.click(get_images, txt, gallery)
I can pass image label like this images.append((f"{jpg_path}\\{jpg_image}", f"{jpg_image}")) but not image alt please add an option and I think img alt is super important for data science and seo "thank you for coming to my ted talk" 👏👏👏
full code here https://github.com/camenduru/stable-diffusion-webui-artists-to-study
gradio/ui/packages/app/src/components/Gallery/Gallery.svelte
Line 193 in 5a090de
I can pass image label like this
images.append((f"{jpg_path}\\{jpg_image}", f"{jpg_image}"))but not image alt please add an option and I think img alt is super important for data science and seo "thank you for coming to my ted talk" 👏👏👏full code here https://github.com/camenduru/stable-diffusion-webui-artists-to-study