NielsRogge / Transformers-Tutorials

This repository contains demos I made with the Transformers library by HuggingFace.
MIT License
8.45k stars 1.32k forks source link

Donut CORD inference notebook has wrong code displayed on Github preview #361

Open PierreMesure opened 8 months ago

PierreMesure commented 8 months ago

Hi,

I'm not an expert in how Jupyter notebooks work but I noticed that the Donut/CORD/Quick_inference_with_DONUT_for_Document_Parsing.ipynb notebook has a different value on its preview than in the actual code. The line:

task_prompt = "<s_cord-v2>"

becomes:

task_prompt = ""

I'm not sure why that happens but it took me 5 good minutes to find the issue when I stupidly copied and paste from the preview into a python file instead of taking from the notebook itself. It would be good to fix it so it doesn't happen to others. 😊