# Layoutlmv2 inferencing google colab notebook

**URL:** <https://discuss.huggingface.co/t/layoutlmv2-inferencing-google-colab-notebook/68203>\
**Category:** Beginners\
**Created:** [January 6, 2024, 11:53pm UTC](https://discuss.huggingface.co/t/layoutlmv2-inferencing-google-colab-notebook/68203 "2024-01-06T23:53:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishisriv-bh](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rishisriv-bh](https://discuss.huggingface.co/u/rishisriv-bh)\
**Post date:** [January 6, 2024, 11:53pm UTC](https://discuss.huggingface.co/t/layoutlmv2-inferencing-google-colab-notebook/68203/1 "2024-01-06T23:53:36Z")

</div>

Hello,  
I am having trouble running this google colab notebook:

> **[Google Colaboratory](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/True_inference_with_LayoutLMv2ForTokenClassification_%2B_Gradio_demo.ipynb)**

There are 2 blocks that are causing issues:

1. !pip install pyyaml==5.1

: pyyaml doesn’t install

1. from PIL import Image, ImageDraw, ImageFont

image = Image.open(example[‘image\_path’])  
image = image.convert(“RGB”)  
image

Error is the File is not available in the creator’s google drive.

Has someone recently replicated this google colab notebook.

Rishi
