Spaces:
Sleeping
Sleeping
import gradio as gr | |
def generate(number): | |
return f"{number}.png" | |
with gr.Blocks() as demo: | |
slider = gr.Slider(minimum=1, maximum=3, value=1) | |
button = gr.Button() | |
image = gr.Image() | |
examples = gr.Examples( | |
examples=[[1], [2], [3]], | |
inputs=[slider], | |
outputs=image, | |
fn=generate, | |
cache_examples="lazy" | |
) | |
demo.launch(ssr_mode=False) |