rishisim commited on
Commit
b03791b
·
verified ·
1 Parent(s): ebf08b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -11,13 +11,16 @@ from huggingface_hub import login
11
  import os
12
 
13
 
14
- # from transformers import AutoModelForCausalLM, AutoTokenizer
15
- # from transformers import pipeline
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)