Update README.md
Browse files
README.md
CHANGED
@@ -7,4 +7,11 @@ tags:
|
|
7 |
---
|
8 |
from datasets import load_dataset
|
9 |
|
10 |
-
ds = load_dataset("sebastiandizon/genius-song-lyrics")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
---
|
8 |
from datasets import load_dataset
|
9 |
|
10 |
+
ds = load_dataset("sebastiandizon/genius-song-lyrics")
|
11 |
+
|
12 |
+
|
13 |
+
# Load model directly
|
14 |
+
from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering
|
15 |
+
|
16 |
+
tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-qa")
|
17 |
+
model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-document-qa")
|