Update README.md
Browse files
README.md
CHANGED
@@ -41,11 +41,18 @@ class DocOwlInfer():
|
|
41 |
|
42 |
docowl = DocOwlInfer(ckpt_path='mPLUG/DocOwl2')
|
43 |
|
44 |
-
images = [
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
|
51 |
βββ
|
|
|
41 |
|
42 |
docowl = DocOwlInfer(ckpt_path='mPLUG/DocOwl2')
|
43 |
|
44 |
+
images = [
|
45 |
+
'./examples/docowl2_page0.png',
|
46 |
+
'./examples/docowl2_page1.png',
|
47 |
+
'./examples/docowl2_page2.png',
|
48 |
+
'./examples/docowl2_page3.png',
|
49 |
+
'./examples/docowl2_page4.png',
|
50 |
+
'./examples/docowl2_page5.png',
|
51 |
+
]
|
52 |
+
|
53 |
+
answer = docowl.inference(images, query='what is this paper about? provide detailed information.')
|
54 |
+
|
55 |
+
answer = docowl.inference(images, query='what is the third page about? provide detailed information.')
|
56 |
|
57 |
|
58 |
βββ
|