Deploy Space
Browse files- Dockerfile +1 -0
- scripts/deploy_hf_space.py +1 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,7 @@ WORKDIR /app
|
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
build-essential \
|
| 10 |
supervisor \
|
|
|
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
COPY requirements.txt /app/requirements.txt
|
|
|
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
build-essential \
|
| 10 |
supervisor \
|
| 11 |
+
libgomp1 \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
COPY requirements.txt /app/requirements.txt
|
scripts/deploy_hf_space.py
CHANGED
|
@@ -32,6 +32,7 @@ def main() -> None:
|
|
| 32 |
repo_type="space",
|
| 33 |
token=token,
|
| 34 |
commit_message="Deploy Space",
|
|
|
|
| 35 |
)
|
| 36 |
|
| 37 |
print(f"Deployed: https://huggingface.co/spaces/{repo_id}")
|
|
|
|
| 32 |
repo_type="space",
|
| 33 |
token=token,
|
| 34 |
commit_message="Deploy Space",
|
| 35 |
+
ignore_patterns=[".venv/**", "**/__pycache__/**", ".git/**"],
|
| 36 |
)
|
| 37 |
|
| 38 |
print(f"Deployed: https://huggingface.co/spaces/{repo_id}")
|