You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pre-set a set of images to display with gr.Gallery(), but it failed. And I can use gr.Image() to show my picture. Why锛烼hank you for everyone who reads this issue.
Hi @IcyMing, you don't need to put localhost in the path to the images typically, e.g. you don't need to do: http://localhost:8000/img1.png. Instead, just put the path relative to the working directory where Gradio was launched from, e.g. ["img1.png", "img2.png", ...]
Describe the bug
I pre-set a set of images to display with gr.Gallery(), but it failed. And I can use gr.Image() to show my picture. Why锛烼hank you for everyone who reads this issue.
Have you searched existing issues? 馃攷
Reproduction
pattern_images = [
"http://localhost:8000/img1.png",
"http://localhost:8000/img2.png",
"http://localhost:8000/img3.png",
"http://localhost:8000/img4.png",
]
def generate_style_images(text, img_width, img_height, style, num_images):
selected_images = black_images[:num_images]
return selected_images
(.........)
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: