Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,9 @@ llm = ChatGroq(
|
|
| 33 |
# cache_folder="./hf_cache",
|
| 34 |
# huggingfacehub_api_token=HUGGINGFACE_API_KEY
|
| 35 |
# )
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# --- Streamlit UI ---
|
| 38 |
st.title("📄📥 Chat with PDF or Text using Groq + RAG")
|
|
|
|
| 33 |
# cache_folder="./hf_cache",
|
| 34 |
# huggingfacehub_api_token=HUGGINGFACE_API_KEY
|
| 35 |
# )
|
| 36 |
+
embedding = HuggingFaceEmbeddings(
|
| 37 |
+
model_name="sentence-transformers/all-MiniLM-L6-v2"
|
| 38 |
+
)
|
| 39 |
|
| 40 |
# --- Streamlit UI ---
|
| 41 |
st.title("📄📥 Chat with PDF or Text using Groq + RAG")
|