Spaces:
Running
Running
Jacobo Myerston Claude Sonnet 4.6 commited on
Commit ·
07d5e03
1
Parent(s): 14e343d
Switch to Docker SDK to fix tokenizers build failure
Browse filesNative streamlit SDK ships an old pip that tries to compile tokenizers
from source (requiring Rust). Docker lets us upgrade pip first so the
pre-built tokenizers wheel is found and used instead.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile +16 -0
- README.md +1 -2
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /code
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install --upgrade pip && \
|
| 7 |
+
pip install --no-cache-dir -r requirements.txt
|
| 8 |
+
|
| 9 |
+
COPY . .
|
| 10 |
+
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
|
| 13 |
+
CMD ["streamlit", "run", "app.py", \
|
| 14 |
+
"--server.port=7860", \
|
| 15 |
+
"--server.address=0.0.0.0", \
|
| 16 |
+
"--server.headless=true"]
|
README.md
CHANGED
|
@@ -3,8 +3,7 @@ title: Ancient_Greek_Spacy_Models
|
|
| 3 |
emoji: 🐨
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: green
|
| 6 |
-
sdk:
|
| 7 |
-
app_file: app.py
|
| 8 |
pinned: true
|
| 9 |
---
|
| 10 |
|
|
|
|
| 3 |
emoji: 🐨
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: green
|
| 6 |
+
sdk: docker
|
|
|
|
| 7 |
pinned: true
|
| 8 |
---
|
| 9 |
|