Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,16 @@ from huggingface_hub import login
|
|
11 |
import os
|
12 |
|
13 |
|
14 |
-
|
15 |
-
|
16 |
|
17 |
-
from transformers import AutoModel
|
18 |
-
llm = AutoModel.from_pretrained("Alibaba-NLP/gte-large-en-v1.5", trust_remote_code=True)
|
19 |
|
20 |
# LLAMA
|
|
|
|
|
|
|
21 |
# hf_token = os.environ['llama_token']
|
22 |
|
23 |
# login(token=hf_token)
|
|
|
11 |
import os
|
12 |
|
13 |
|
14 |
+
from transformers import pipeline
|
15 |
+
pipe = pipeline("feature-extraction", model="mixedbread-ai/mxbai-embed-large-v1")
|
16 |
|
17 |
+
# from transformers import AutoModel
|
18 |
+
# llm = AutoModel.from_pretrained("Alibaba-NLP/gte-large-en-v1.5", trust_remote_code=True)
|
19 |
|
20 |
# LLAMA
|
21 |
+
# from transformers import AutoModelForCausalLM, AutoTokenizer
|
22 |
+
# from transformers import pipeline
|
23 |
+
|
24 |
# hf_token = os.environ['llama_token']
|
25 |
|
26 |
# login(token=hf_token)
|