File size: 413 Bytes
a980291
8471ba9
a980291
 
 
 
 
8471ba9
a980291
 
 
2a20cf3
a980291
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

# This function would handle the uploaded image, but for this basic example, we do nothing.
def handle_upload(image):
    # In a real application, you would process the image here.
    # For now, we just acknowledge the upload.
    return "Image uploaded successfully!"

with gr.Blocks() as demo:
    gr.Markdown("## Basic Image Uploader")
    gr.Image(label="Upload an Image")

demo.launch()