| |
| FROM python:3.10 |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y git ffmpeg |
|
|
| |
| COPY . . |
|
|
| |
| RUN pip install --no-cache-dir --upgrade pip setuptools wheel |
|
|
| |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
|
|
| |
| RUN sed -i 's/from torchvision.transforms.functional_tensor import rgb_to_grayscale/from torchvision.transforms.functional import rgb_to_grayscale/g' /usr/local/lib/python3.10/site-packages/basicsr/data/degradations.py |
|
|
| |
| RUN pip install "gradio==3.48.0" |
|
|
| |
|
|
| |
| ENV GRADIO_SERVER_NAME="0.0.0.0" |
|
|
| |
| ENV GRADIO_SERVER_PORT="7860" |
|
|
| |
| |
| CMD ["python", "-u", "app.py"] |