Spaces:
Sleeping
Sleeping
Pratyush Maini
commited on
Commit
·
7b8d998
1
Parent(s):
5367b44
Clean up: Remove unnecessary files (venv, cache, logs)
Browse files- Dockerfile +0 -34
- gradio.log +0 -9
Dockerfile
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
# Prevent interactive prompts during apt installs
|
| 4 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
-
|
| 6 |
-
# System deps (avoid deprecated libgl1-mesa-glx on Debian trixie)
|
| 7 |
-
RUN apt-get update \
|
| 8 |
-
&& apt-get install -y --no-install-recommends \
|
| 9 |
-
git \
|
| 10 |
-
git-lfs \
|
| 11 |
-
ffmpeg \
|
| 12 |
-
libsm6 \
|
| 13 |
-
libxext6 \
|
| 14 |
-
libgl1 \
|
| 15 |
-
cmake \
|
| 16 |
-
rsync \
|
| 17 |
-
&& rm -rf /var/lib/apt/lists/* \
|
| 18 |
-
&& git lfs install
|
| 19 |
-
|
| 20 |
-
WORKDIR /app
|
| 21 |
-
|
| 22 |
-
# Install Python deps first for better layer caching
|
| 23 |
-
COPY requirements.txt ./
|
| 24 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
-
|
| 26 |
-
# Copy app code
|
| 27 |
-
COPY app.py ./
|
| 28 |
-
|
| 29 |
-
# Gradio/Spaces defaults
|
| 30 |
-
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 31 |
-
EXPOSE 7860
|
| 32 |
-
|
| 33 |
-
CMD ["python", "app.py"]
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio.log
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
Traceback (most recent call last):
|
| 2 |
-
File "/Users/pratyushmaini/Desktop/code/personal/websites/safe-playground/app.py", line 338, in <module>
|
| 3 |
-
demo.launch()
|
| 4 |
-
File "/Users/pratyushmaini/Desktop/code/personal/websites/safe-playground/.venv/lib/python3.12/site-packages/gradio/blocks.py", line 2371, in launch
|
| 5 |
-
) = http_server.start_server(
|
| 6 |
-
^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 7 |
-
File "/Users/pratyushmaini/Desktop/code/personal/websites/safe-playground/.venv/lib/python3.12/site-packages/gradio/http_server.py", line 154, in start_server
|
| 8 |
-
raise OSError(
|
| 9 |
-
OSError: Cannot find empty port in range: 7860-7959. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the `server_port` parameter to `launch()`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|