multimodalart's picture
Create app.py
394d17b verified
raw
history blame
353 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
)
demo.launch()