Mehak900 commited on
Commit
593fe27
·
verified ·
1 Parent(s): 5b5088e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
8
  from langchain.docstore.document import Document
9
 
10
  # Set your Groq API key directly (recommended for Hugging Face Spaces)
11
- GROQ_API_KEY = "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" # 🔁 Replace this with your actual API key
 
12
 
13
  # Initialize Groq client
14
  groq_client = Groq(api_key=GROQ_API_KEY)
 
8
  from langchain.docstore.document import Document
9
 
10
  # Set your Groq API key directly (recommended for Hugging Face Spaces)
11
+
12
+ GROQ_API_KEY = os.getenv("RAG_API") # Use your custom environment variable name
13
 
14
  # Initialize Groq client
15
  groq_client = Groq(api_key=GROQ_API_KEY)