Spaces:
Sleeping
Sleeping
Update Docker
Browse files
Docker
CHANGED
@@ -24,9 +24,12 @@ RUN pip install --upgrade pip
|
|
24 |
# Install the required Python packages
|
25 |
RUN pip install -r requirements.txt
|
26 |
RUN pip install --upgrade transformers # Upgrade transformers here
|
|
|
|
|
|
|
27 |
|
28 |
# Copy the rest of the application code to the working directory
|
29 |
COPY . .
|
30 |
-
|
31 |
# Command to run the app with Streamlit
|
32 |
CMD ["streamlit", "run", "app.py", "--server.port=8080", "--server.address=0.0.0.0"]
|
|
|
24 |
# Install the required Python packages
|
25 |
RUN pip install -r requirements.txt
|
26 |
RUN pip install --upgrade transformers # Upgrade transformers here
|
27 |
+
# Check transformers version
|
28 |
+
RUN python -c "import transformers; print(transformers.__version__)"
|
29 |
+
RUN python test_import.py
|
30 |
|
31 |
# Copy the rest of the application code to the working directory
|
32 |
COPY . .
|
33 |
+
COPY test_import.py
|
34 |
# Command to run the app with Streamlit
|
35 |
CMD ["streamlit", "run", "app.py", "--server.port=8080", "--server.address=0.0.0.0"]
|