Spaces:
Running
Running
fix: disabling .env loading as secrets are being used.
Browse filesfix: commenting out openai client as HF inference client is being used.
src/insurance_assistants/complex_rag.py
CHANGED
@@ -16,8 +16,8 @@ from colpali_engine.models import (
|
|
16 |
ColQwen2_5_Processor,
|
17 |
)
|
18 |
from colpali_engine.utils.torch_utils import ListDataset, get_torch_device
|
19 |
-
from dotenv import find_dotenv, load_dotenv
|
20 |
-
from openai import OpenAI
|
21 |
from pdf2image import convert_from_path
|
22 |
from PIL import Image
|
23 |
from pymilvus import DataType, MilvusClient
|
@@ -47,8 +47,8 @@ processor = ColQwen2_5_Processor.from_pretrained(
|
|
47 |
pretrained_model_name_or_path=model_name,
|
48 |
use_fast=True,
|
49 |
)
|
50 |
-
_ = load_dotenv(dotenv_path=find_dotenv(raise_error_if_not_found=False))
|
51 |
-
openai_client = OpenAI()
|
52 |
|
53 |
|
54 |
# %%
|
|
|
16 |
ColQwen2_5_Processor,
|
17 |
)
|
18 |
from colpali_engine.utils.torch_utils import ListDataset, get_torch_device
|
19 |
+
# from dotenv import find_dotenv, load_dotenv
|
20 |
+
# from openai import OpenAI
|
21 |
from pdf2image import convert_from_path
|
22 |
from PIL import Image
|
23 |
from pymilvus import DataType, MilvusClient
|
|
|
47 |
pretrained_model_name_or_path=model_name,
|
48 |
use_fast=True,
|
49 |
)
|
50 |
+
# _ = load_dotenv(dotenv_path=find_dotenv(raise_error_if_not_found=False))
|
51 |
+
# openai_client = OpenAI()
|
52 |
|
53 |
|
54 |
# %%
|