Spaces:
Sleeping
Sleeping
small update
Browse files- functions.py +4 -0
functions.py
CHANGED
@@ -9,6 +9,10 @@ from qdrant_client.http.models import Distance, VectorParams
|
|
9 |
from langchain.prompts import ChatPromptTemplate
|
10 |
import tiktoken
|
11 |
import os
|
|
|
|
|
|
|
|
|
12 |
|
13 |
### SETUP FUNCTIONS ###
|
14 |
def tiktoken_len(text):
|
|
|
9 |
from langchain.prompts import ChatPromptTemplate
|
10 |
import tiktoken
|
11 |
import os
|
12 |
+
from dotenv import load_dotenv
|
13 |
+
|
14 |
+
# Load environment variables from .env file
|
15 |
+
load_dotenv()
|
16 |
|
17 |
### SETUP FUNCTIONS ###
|
18 |
def tiktoken_len(text):
|