Spaces:
Runtime error
Runtime error
Commit
·
949b879
1
Parent(s):
66b8f71
Upload Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -21,8 +21,7 @@ RUN pip install -r requirements.txt
|
|
21 |
# Install a specific version of the Hugging Face Transformers library
|
22 |
RUN pip install transformers==4.15.0
|
23 |
|
24 |
-
|
25 |
-
RUN python -c "from transformers import AutoModelForSequenceClassification, AutoTokenizer; AutoModelForSequenceClassification.from_pretrained('your_model_name'); AutoTokenizer.from_pretrained('your_model_name')"
|
26 |
|
27 |
# Add Tesseract to PATH
|
28 |
ENV PATH="/usr/bin/tesseract:${PATH}"
|
@@ -30,8 +29,7 @@ ENV PATH="/usr/bin/tesseract:${PATH}"
|
|
30 |
# Make port 8501 available to the world outside this container
|
31 |
EXPOSE 8501
|
32 |
|
33 |
-
|
34 |
-
ENV NAME World
|
35 |
|
36 |
# Run app.py when the container launches
|
37 |
CMD ["streamlit", "run", "app.py"]
|
|
|
21 |
# Install a specific version of the Hugging Face Transformers library
|
22 |
RUN pip install transformers==4.15.0
|
23 |
|
24 |
+
|
|
|
25 |
|
26 |
# Add Tesseract to PATH
|
27 |
ENV PATH="/usr/bin/tesseract:${PATH}"
|
|
|
29 |
# Make port 8501 available to the world outside this container
|
30 |
EXPOSE 8501
|
31 |
|
32 |
+
|
|
|
33 |
|
34 |
# Run app.py when the container launches
|
35 |
CMD ["streamlit", "run", "app.py"]
|