Upload deepseek-ai_DeepSeek-OCR_0.txt with huggingface_hub
Browse files
deepseek-ai_DeepSeek-OCR_0.txt
CHANGED
|
@@ -3,21 +3,11 @@
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-OCR", trust_remote_code=True)
|
| 6 |
-
messages = [
|
| 7 |
-
{
|
| 8 |
-
"role": "user",
|
| 9 |
-
"content": [
|
| 10 |
-
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
|
| 11 |
-
{"type": "text", "text": "What animal is on the candy?"}
|
| 12 |
-
]
|
| 13 |
-
},
|
| 14 |
-
]
|
| 15 |
-
pipe(text=messages)
|
| 16 |
```
|
| 17 |
|
| 18 |
ERROR:
|
| 19 |
Traceback (most recent call last):
|
| 20 |
-
File "/tmp/deepseek-ai_DeepSeek-
|
| 21 |
pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-OCR", trust_remote_code=True)
|
| 22 |
File "/tmp/.cache/uv/environments-v2/bef790db2848308a/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline
|
| 23 |
config = AutoConfig.from_pretrained(
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-OCR", trust_remote_code=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
```
|
| 7 |
|
| 8 |
ERROR:
|
| 9 |
Traceback (most recent call last):
|
| 10 |
+
File "/tmp/deepseek-ai_DeepSeek-OCR_07ZcFaQ.py", line 26, in <module>
|
| 11 |
pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-OCR", trust_remote_code=True)
|
| 12 |
File "/tmp/.cache/uv/environments-v2/bef790db2848308a/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline
|
| 13 |
config = AutoConfig.from_pretrained(
|