pyresearch commited on
Commit
949b879
·
1 Parent(s): 66b8f71

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 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}"
@@ -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
- # Define environment variable
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"]