Spaces:
Sleeping

our-first-demo / app.py
github-actions
Auto-deploy greeting_demo with LFS image
a0d275d
Raw History Blame Contribute Delete
454 Bytes
import gradio as gr
def show_image():
return "welcome.jpg" # This file must be in the same folder as app.py
with gr.Blocks(title="Push Me Demo") as demo:
gr.Markdown("# Click the button to reveal an image - you know you want to!")
btn = gr.Button("Push me")
img = gr.Image(label="Your Guide Appears", type="filepath", visible=True)
btn.click(fn=show_image, outputs=img)
if __name__ == "__main__":
demo.launch(share=True)