Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,6 @@ import os
|
|
| 11 |
import tempfile
|
| 12 |
from langchain_groq import ChatGroq
|
| 13 |
|
| 14 |
-
llm = ChatGroq(model="llama3-8b-8192", groq_api_key=groq_api_key)
|
| 15 |
-
|
| 16 |
|
| 17 |
# Define the embedding class
|
| 18 |
class SentenceTransformerEmbedding:
|
|
@@ -38,7 +36,7 @@ embedding_model = SentenceTransformerEmbedding('all-MiniLM-L6-v2')
|
|
| 38 |
groq_api_key = "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"
|
| 39 |
langchain_api_key = "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"
|
| 40 |
|
| 41 |
-
llm =
|
| 42 |
|
| 43 |
def load_document(document_path):
|
| 44 |
try:
|
|
|
|
| 11 |
import tempfile
|
| 12 |
from langchain_groq import ChatGroq
|
| 13 |
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# Define the embedding class
|
| 16 |
class SentenceTransformerEmbedding:
|
|
|
|
| 36 |
groq_api_key = "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"
|
| 37 |
langchain_api_key = "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"
|
| 38 |
|
| 39 |
+
llm = ChatGroq(model="llama3-8b-8192", groq_api_key=groq_api_key)
|
| 40 |
|
| 41 |
def load_document(document_path):
|
| 42 |
try:
|