Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
| 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)
|