From 3d42b70fbbcaa9e3bbd53fcde95919416a6b7b49 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 14 Apr 2022 15:31:40 +0200 Subject: [PATCH] Added macos version of xpdf in tutorial 8 (#2424) * Added macos version of xpdf in tutorial 8 * mini-error --- tutorials/Tutorial8_Preprocessing.ipynb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tutorials/Tutorial8_Preprocessing.ipynb b/tutorials/Tutorial8_Preprocessing.ipynb index 0123b8b16f..adb29b8913 100644 --- a/tutorials/Tutorial8_Preprocessing.ipynb +++ b/tutorials/Tutorial8_Preprocessing.ipynb @@ -65,8 +65,13 @@ "!pip install --upgrade pip\n", "!pip install git+https://github.com/deepset-ai/haystack.git#egg=farm-haystack[colab,ocr]\n", "\n", + "# For Colab/linux based machines\n", "!wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.03.tar.gz\n", - "!tar -xvf xpdf-tools-linux-4.03.tar.gz && sudo cp xpdf-tools-linux-4.03/bin64/pdftotext /usr/local/bin" + "!tar -xvf xpdf-tools-linux-4.03.tar.gz && sudo cp xpdf-tools-linux-4.03/bin64/pdftotext /usr/local/bin\n", + "\n", + "# For Macos machines\n", + "# !wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-mac-4.03.tar.gz\n", + "# !tar -xvf xpdf-tools-mac-4.03.tar.gz && sudo cp xpdf-tools-mac-4.03/bin64/pdftotext /usr/local/bin" ] }, { @@ -509,4 +514,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} \ No newline at end of file +}