Spaces:
Build error
Build error
formatting of comments
Browse files
app.py
CHANGED
@@ -32,9 +32,8 @@ def load_env_variables():
|
|
32 |
|
33 |
return hf_token, yi_token
|
34 |
|
35 |
-
# Example usage
|
36 |
hf_token, yi_token = load_env_variables()
|
37 |
-
|
38 |
|
39 |
|
40 |
## use instruct embeddings
|
@@ -42,6 +41,7 @@ hf_token, yi_token = load_env_variables()
|
|
42 |
tokenizer = AutoTokenizer.from_pretrained('nvidia/NV-Embed-v1', token = hf_token , trust_remote_code=True)
|
43 |
model = AutoModel.from_pretrained('nvidia/NV-Embed-v1' , token = hf_token , trust_remote_code=True).to(device)
|
44 |
|
|
|
45 |
|
46 |
## Make intention Mapper
|
47 |
|
|
|
32 |
|
33 |
return hf_token, yi_token
|
34 |
|
|
|
35 |
hf_token, yi_token = load_env_variables()
|
36 |
+
|
37 |
|
38 |
|
39 |
## use instruct embeddings
|
|
|
41 |
tokenizer = AutoTokenizer.from_pretrained('nvidia/NV-Embed-v1', token = hf_token , trust_remote_code=True)
|
42 |
model = AutoModel.from_pretrained('nvidia/NV-Embed-v1' , token = hf_token , trust_remote_code=True).to(device)
|
43 |
|
44 |
+
## add chroma vector store
|
45 |
|
46 |
## Make intention Mapper
|
47 |
|