Upload deepseek-ai_DeepSeek-OCR_1.py with huggingface_hub
Browse files3 unmodified lines45678911 unmodified lines2122232425262710 unmodified lines383940414243443 unmodified lines# "numpy",# "einops",# "pandas",# "protobuf",# "torch",# "sentencepiece",11 unmodified linestry:# Load model directlyfrom transformers import AutoModelmodel = AutoModel.from_pretrained("deepseek-ai/DeepSeek-OCR", trust_remote_code=True, torch_dtype="auto")with open('deepseek-ai_DeepSeek-OCR_1.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in deepseek-ai_DeepSeek-OCR_1.txt')except Exception as e:10 unmodified linesf.write('''```CODE:# Load model directlyfrom transformers import AutoModelmodel = AutoModel.from_pretrained("deepseek-ai/DeepSeek-OCR", trust_remote_code=True, torch_dtype="auto")```ERROR:3 unmodified lines456789101111 unmodified lines2324252627282910 unmodified lines404142434445463 unmodified lines# "numpy",# "einops",# "pandas",# "matplotlib",# "paddleorc",# "protobuf",# "torch",# "sentencepiece",11 unmodified linestry:# Load model directlyfrom transformers import AutoModelmodel = AutoModel.from_pretrained("deepseek-ai/DeepSeek-OCR", trust_remote_code=True, dtype="auto")with open('deepseek-ai_DeepSeek-OCR_1.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in deepseek-ai_DeepSeek-OCR_1.txt')except Exception as e:10 unmodified linesf.write('''```CODE:# Load model directlyfrom transformers import AutoModelmodel = AutoModel.from_pretrained("deepseek-ai/DeepSeek-OCR", trust_remote_code=True, dtype="auto")```ERROR:
deepseek-ai_DeepSeek-OCR_1.py+4-2