Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse filesDownload model when build Docker
- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -36,10 +36,10 @@ COPY . /app
|
|
| 36 |
RUN pip install git+https://github.com/huggingface/transformers.git
|
| 37 |
# Debug the transformers package and download the model
|
| 38 |
#RUN python -c "import transformers; print(transformers.__version__); print(dir(transformers))"
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
# Expose the port
|
| 45 |
EXPOSE 8080
|
|
|
|
| 36 |
RUN pip install git+https://github.com/huggingface/transformers.git
|
| 37 |
# Debug the transformers package and download the model
|
| 38 |
#RUN python -c "import transformers; print(transformers.__version__); print(dir(transformers))"
|
| 39 |
+
RUN python -c "from transformers import AutoProcessor, SeamlessM4Tv2Model; \
|
| 40 |
+
model_name = 'facebook/seamless-m4t-v2-large'; \
|
| 41 |
+
AutoProcessor.from_pretrained(model_name); \
|
| 42 |
+
SeamlessM4Tv2Model.from_pretrained(model_name)"
|
| 43 |
|
| 44 |
# Expose the port
|
| 45 |
EXPOSE 8080
|