Brian Lee
Brian Lee
### 请提出你的问题 在使用paddlenlp 智能文档问答时会遇到上面的问题 from pprint import pprint from paddlenlp import Taskflow docprompt = Taskflow("document_intelligence") pprint(docprompt([{"doc": "xxxx.jpeg", "prompt": ['医院名称是什么?']}]))
(.venv) lizhong@lizhongdeMac-mini ChatPDF % PYTORCH_ENABLE_MPS_FALLBACK=1 CUDA_VISIBLE_DEVICES=0 python chatpdf.py --gen_model_type auto --gen_model_name 01-ai/Yi-6B-Chat --corpus_files sample.pdf Namespace(sim_model_name='shibing624/text2vec-base-multilingual', gen_model_type='auto', gen_model_name='01-ai/Yi-6B-Chat', lora_model=None, rerank_model_name='', corpus_files='sample.pdf', device=None, int4=False, int8=False, chunk_size=220, chunk_overlap=0, num_expand_context_chunk=1) 2024-03-14 11:11:22.449 | DEBUG...
> [!IMPORTANT] > Fix parameter names in Python `scan` event examples in `event.mdx`. > > - **Python Examples**: > - Fix parameter name `staus` to `status` in `on_scan` function. >...