Skip to content

Commit 247e120

Browse files
committed
installing right version of transformer - Adithya S K
1 parent 5d8575c commit 247e120

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ WORKDIR /app
5555
# Install Python package (assuming it has a setup.py)
5656
RUN pip3 install --no-cache-dir -e .
5757

58+
RUN pip install transformers==4.41.2
59+
5860
# Set environment variables
5961
ENV CHROME_BIN=/usr/bin/google-chrome \
6062
CHROMEDRIVER=/usr/local/bin/chromedriver \

examples/OmniParse_GoogleColab.ipynb

+11-3
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,18 @@
7171
"outputs": [],
7272
"source": [
7373
"## Install dependencies\n",
74-
"\n",
7574
"%pip install -e ."
7675
]
7776
},
77+
{
78+
"cell_type": "code",
79+
"execution_count": null,
80+
"metadata": {},
81+
"outputs": [],
82+
"source": [
83+
"%pip install transformers==4.41.2"
84+
]
85+
},
7886
{
7987
"cell_type": "code",
8088
"execution_count": null,
@@ -115,8 +123,8 @@
115123
"\n",
116124
"# Download and install ChromeDriver\n",
117125
"!CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE) && \\\n",
118-
" wget -N https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip -P /tmp && \\\n",
119-
" unzip /tmp/chromedriver_linux64.zip -d /tmp && \\\n",
126+
" wget -q -N https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip -P /tmp && \\\n",
127+
" unzip -o /tmp/chromedriver_linux64.zip -d /tmp && \\\n",
120128
" mv /tmp/chromedriver /usr/local/bin/chromedriver && \\\n",
121129
" chmod +x /usr/local/bin/chromedriver && \\\n",
122130
" rm /tmp/chromedriver_linux64.zip\n",

0 commit comments

Comments
 (0)