sg7849 commited on
Commit
302f558
·
verified ·
1 Parent(s): 6d30351
Files changed (1) hide show
  1. hf_retrieval.py +4 -0
hf_retrieval.py CHANGED
@@ -15,6 +15,10 @@ checkpoint_path = "finetuned_clip.pt"
15
  model.load_state_dict(torch.load(checkpoint_path, map_location="cpu"))
16
  model.eval()
17
 
 
 
 
 
18
  qdrant = QdrantClient(url=os.environ["QDRANT_CLOUD_URL"],
19
  api_key=["QDRANT_API_KEY"])
20
  collection_name = "video_chunks"
 
15
  model.load_state_dict(torch.load(checkpoint_path, map_location="cpu"))
16
  model.eval()
17
 
18
+ print("QDRANT_CLOUD_URL:", os.environ["QDRANT_CLOUD_URL"])
19
+ print("QDRANT_API_KEY:", os.environ["QDRANT_API_KEY"])
20
+ print("Type of API key:", type(os.environ["QDRANT_API_KEY"]))
21
+
22
  qdrant = QdrantClient(url=os.environ["QDRANT_CLOUD_URL"],
23
  api_key=["QDRANT_API_KEY"])
24
  collection_name = "video_chunks"