Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,11 @@ from langchain_community.vectorstores import FAISS
|
|
| 6 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
| 7 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Hardcoded Google Drive link (replace with your valid link)
|
| 10 |
GOOGLE_DRIVE_LINK = "https://drive.google.com/file/d/1KCr8vXUGzuZhQZq-D9CadJEP0eLSSYN8/view?usp=sharing"
|
| 11 |
|
|
|
|
| 6 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
| 7 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 8 |
|
| 9 |
+
# Initialize Groq Client
|
| 10 |
+
GROQ_API_KEY = "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" # Replace with your Groq API key
|
| 11 |
+
os.environ["GROQ_API_KEY"] = GROQ_API_KEY
|
| 12 |
+
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
| 13 |
+
|
| 14 |
# Hardcoded Google Drive link (replace with your valid link)
|
| 15 |
GOOGLE_DRIVE_LINK = "https://drive.google.com/file/d/1KCr8vXUGzuZhQZq-D9CadJEP0eLSSYN8/view?usp=sharing"
|
| 16 |
|