Spaces:
Running
Running
Tanusree88
commited on
Commit
•
bff0de2
1
Parent(s):
a308062
Update Docker
Browse files
Docker
CHANGED
@@ -20,6 +20,12 @@ COPY requirements.txt .
|
|
20 |
|
21 |
# Upgrade pip to avoid any compatibility issues
|
22 |
RUN pip install --upgrade pip
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
# Install the required Python packages
|
25 |
RUN pip install -r requirements.txt
|
|
|
20 |
|
21 |
# Upgrade pip to avoid any compatibility issues
|
22 |
RUN pip install --upgrade pip
|
23 |
+
RUN pip install --upgrade transformers # Upgrade transformers here
|
24 |
+
# Check transformers version
|
25 |
+
RUN python -c "import transformers; print(transformers.__version__)"
|
26 |
+
RUN python test_import.py
|
27 |
+
RUN pip show transformers
|
28 |
+
RUN python -c "from transformers import SegformerForImageSegmentation"
|
29 |
|
30 |
# Install the required Python packages
|
31 |
RUN pip install -r requirements.txt
|