import gradio as gr data_with_hf_url = [ { "image": "https://huggingface.co/Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style/resolve/main/08a19840b6214b76b0607b2f9d5a7e28_63159b9d98124c008efb1d36446a615c.png", "title": "Test LoRA" } ] def test_function(gallery): print("This function will never be called due to SSRF validation error") return gr.update() with gr.Blocks() as demo: gallery = gr.Gallery( [(item["image"], item["title"]) for item in data_with_hf_url], label="Gallery with HF URLs", columns=1 ) custom_input = gr.Textbox(label="Custom input") button = gr.Button("Click me to trigger SSRF error") button.click( test_function, inputs=[gallery], outputs=[gallery] ) demo.launch()