Spaces:
Build error
Build error
Download update_file.py from hguddn/ajou_chatbot_api: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/hguddn/ajou_chatbot_api/resolve/main/update_file.py
- Command line
-
hf download hf://spaces/hguddn/ajou_chatbot_api/update_file.py
-
curl -L -o update_file.py https://huggingface.co/spaces/hguddn/ajou_chatbot_api/resolve/main/update_file.py
327 Bytes
| import src.retriever as retriever | |
| import src.document_preprocessor_paddleocr as preprocessor | |
| if __name__ == "__main__": | |
| # print("문서 전처리 중...") | |
| # preprocessor.preprocess_document('data') | |
| print("벡터 DB 저장 중...") | |
| retriever.build_vector_store('data/processed_paddleocr_v4_2500_noscore') | |