shresthasingh commited on
Commit
8b80009
1 Parent(s): 6fbc7af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "c0165440493846b339438fab762683835cf8b78a9c2d3c1216555e491565ca6a"
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"