diff --git a/docs/FAQ.md b/docs/FAQ.md index 61eb4c5..a7eb64a 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -63,6 +63,15 @@ For LDAP authentication using FastAPI, explore the following resources: ## Set up Ollama - ollama: https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image +- ollama github: https://github.com/ollama/ollama + +1. To install Ollama on docker: follow the instruction here based on your hardware (the OS asn CPU or GPU): https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image +2. Run this command to download the model +``` bash +docker exec -it ollama ollama run llama3.1:8b +``` + +- All the models available [here](https://ollama.com/search) ## Illegal instruction using lang ch in Paddle diff --git a/src/test_api.py b/src/test_api.py index 6ef9ca4..908eb50 100644 --- a/src/test_api.py +++ b/src/test_api.py @@ -193,23 +193,23 @@ def upload_many_files(folder_path: str, user_uuid: str, number_of_images: int): root_url = f"http://{config['IES_host']}:{config['IES_port']}" #localhost - img_path = "test/images/007_2.png" + img_path = "test/images/1_1.jpg" user_uuid = "gauss" # user_uuid = "2111_1111_1111_1111" - invoice_uuid = "67334a87523c36e276c8e507" + invoice_uuid = "673984b99476e17028e485ad" invoice_info = {"land": "Laos",} # test_excel() file_name = os.path.basename(img_path) - # test_upload_invoice(img_path=img_path, user_uuid=user_uuid, file_name=file_name) + test_upload_invoice(img_path=img_path, user_uuid=user_uuid, file_name=file_name) # Example usage: - upload_many_files(folder_path="test/images", user_uuid="gauss", number_of_images=5) + # upload_many_files(folder_path="test/images", user_uuid="gauss", number_of_images=5) # res, _ = test_get_invoices(user_uuid=user_uuid, invoice_type=None, created_at='desc', invoice_uuid=invoice_uuid) # print(res.json()["invoices"][0]['invoice_info']) - # _, invoice_ids = test_get_invoices(user_uuid=None, invoice_type=None, created_at='desc', invoice_status='not extracted', limit=20) + # _, invoice_ids = test_get_invoices(user_uuid=None, invoice_type=None, created_at='desc', invoice_status='completed', limit=30) # test_modify_invoice(invoice_uuid=invoice_uuid, user_uuid=user_uuid, new_invoice_info=invoice_info) # test_delete_invoice(invoice_uuid=invoice_uuid, user_uuid=user_uuid) # test_get_frontend_defines(root_url=root_url)