TahaDouaji
commited on
Commit
·
3c51a1a
1
Parent(s):
06acdc6
Update README.md
Browse files
README.md
CHANGED
@@ -104,8 +104,7 @@ import torch
|
|
104 |
from PIL import Image
|
105 |
import requests
|
106 |
|
107 |
-
|
108 |
-
image = Image.open(requests.get(url, stream=True).raw)
|
109 |
|
110 |
processor = DetrImageProcessor.from_pretrained("TahaDouaji/detr-doc-table-detection")
|
111 |
model = DetrForObjectDetection.from_pretrained("TahaDouaji/detr-doc-table-detection")
|
|
|
104 |
from PIL import Image
|
105 |
import requests
|
106 |
|
107 |
+
image = Image.open("IMAGE_PATH")
|
|
|
108 |
|
109 |
processor = DetrImageProcessor.from_pretrained("TahaDouaji/detr-doc-table-detection")
|
110 |
model = DetrForObjectDetection.from_pretrained("TahaDouaji/detr-doc-table-detection")
|