Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 2ddc278

Browse files
authored
Merge pull request #15 from VikParuchuri/dev
Fix transformers version bugs
2 parents 81b1bde + b7e41aa commit 2ddc278

File tree

5 files changed

+480
-461
lines changed

5 files changed

+480
-461
lines changed

ocr_app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import os
2+
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1" # For some reason, transformers decided to use .isin for a simple op, which is not supported on MPS
3+
14
import io
25

36
import pandas as pd

0 commit comments

Comments
 (0)