Spaces:
Runtime error
Runtime error
Commit
·
66b8f71
1
Parent(s):
0e95319
Upload Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ FROM python:3.9.13
|
|
4 |
# Set the working directory to /appchecker
|
5 |
WORKDIR /checkerpyresearch
|
6 |
|
7 |
-
# Copy the current directory contents into the container at /
|
8 |
COPY . /checkerpyresearch
|
9 |
|
10 |
# Upgrade pip
|
@@ -18,11 +18,11 @@ RUN apt-get update && apt-get install -y \
|
|
18 |
# Install Python dependencies
|
19 |
RUN pip install -r requirements.txt
|
20 |
|
21 |
-
# Install the Hugging Face Transformers library
|
22 |
-
RUN pip install transformers
|
23 |
|
24 |
# Download and cache the Hugging Face model (replace 'your_model_name' with the actual model name)
|
25 |
-
RUN python -c "from transformers import
|
26 |
|
27 |
# Add Tesseract to PATH
|
28 |
ENV PATH="/usr/bin/tesseract:${PATH}"
|
|
|
4 |
# Set the working directory to /appchecker
|
5 |
WORKDIR /checkerpyresearch
|
6 |
|
7 |
+
# Copy the current directory contents into the container at /appchecker
|
8 |
COPY . /checkerpyresearch
|
9 |
|
10 |
# Upgrade pip
|
|
|
18 |
# Install Python dependencies
|
19 |
RUN pip install -r requirements.txt
|
20 |
|
21 |
+
# Install a specific version of the Hugging Face Transformers library
|
22 |
+
RUN pip install transformers==4.15.0
|
23 |
|
24 |
# Download and cache the Hugging Face model (replace 'your_model_name' with the actual model name)
|
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}"
|