Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,6 @@ import tempfile
|
|
18 |
|
19 |
from groq import Groq
|
20 |
|
21 |
-
|
22 |
-
|
23 |
tokenizer = tiktoken.encoding_for_model("gpt-3.5-turbo")
|
24 |
|
25 |
# create the length function
|
@@ -37,7 +35,7 @@ text_splitter = RecursiveCharacterTextSplitter(
|
|
37 |
separators=["\n\n", "\n", " ", ""]
|
38 |
)
|
39 |
|
40 |
-
embeddings = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2")
|
41 |
foo = Document(page_content='foo is fou!',metadata={"source":'foo source'})
|
42 |
|
43 |
|
|
|
18 |
|
19 |
from groq import Groq
|
20 |
|
|
|
|
|
21 |
tokenizer = tiktoken.encoding_for_model("gpt-3.5-turbo")
|
22 |
|
23 |
# create the length function
|
|
|
35 |
separators=["\n\n", "\n", " ", ""]
|
36 |
)
|
37 |
|
38 |
+
embeddings = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2", device="cuda")
|
39 |
foo = Document(page_content='foo is fou!',metadata={"source":'foo source'})
|
40 |
|
41 |
|