JeKaSm commited on
Commit
a980291
·
verified ·
1 Parent(s): eee06c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -1,11 +1,13 @@
1
- FROM python:3.9-slim
2
 
3
- WORKDIR /app
 
 
 
 
4
 
5
- COPY requirements.txt .
 
 
6
 
7
- RUN pip install --no-cache-dir -r requirements.txt
8
-
9
- COPY app.py .
10
-
11
- CMD ["python", "app.py"]
 
1
+ import gradio as gr
2
 
3
+ # This function would handle the uploaded image, but for this basic example, we do nothing.
4
+ def handle_upload(image):
5
+ # In a real application, you would process the image here.
6
+ # For now, we just acknowledge the upload.
7
+ return "Image uploaded successfully!"
8
 
9
+ with gr.Blocks() as demo:
10
+ gr.Markdown("## Basic Image Uploader")
11
+ gr.Image(label="Upload an Image")
12
 
13
+ demo.launch()