JeKaSm commited on
Commit
03848c5
·
verified ·
1 Parent(s): aa91a97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -1,10 +1,11 @@
1
- import gradio as gr
2
 
3
- def upload_file(files):
4
- file_paths = [file.name for file in files]
5
- return file_paths
6
 
7
- with gr.Blocks() as demo:
8
- gr.Image(label="Upload an Image")
9
 
10
- demo.launch()
 
 
 
 
 
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"]