multimodalart's picture
Update app.py
ff7a9df verified
raw
history blame contribute delete
398 Bytes
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)