Spaces:
Running
Running
shresthasingh
commited on
Commit
•
8b80009
1
Parent(s):
6fbc7af
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
10 |
from langchain_huggingface import HuggingFaceEmbeddings
|
11 |
|
12 |
# Constants
|
13 |
-
API_KEY = "
|
14 |
BASE_URL = "https://api.together.xyz/v1/chat/completions"
|
15 |
CHUNK_SIZE = 6000 # Maximum words per chunk
|
16 |
TEMP_SUMMARY_FILE = "temp_summaries.txt"
|
|
|
10 |
from langchain_huggingface import HuggingFaceEmbeddings
|
11 |
|
12 |
# Constants
|
13 |
+
API_KEY = os.getenv("togetherai")
|
14 |
BASE_URL = "https://api.together.xyz/v1/chat/completions"
|
15 |
CHUNK_SIZE = 6000 # Maximum words per chunk
|
16 |
TEMP_SUMMARY_FILE = "temp_summaries.txt"
|