Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ nltk.download('averaged_perceptron_tagger_eng')
|
|
| 14 |
# Install Poppler and Tesseract in the runtime environment
|
| 15 |
os.system("apt-get update && apt-get install -y poppler-utils tesseract-ocr")
|
| 16 |
|
| 17 |
-
secret = os.getenv('
|
| 18 |
|
| 19 |
working_dir = os.path.dirname(os.path.abspath(__file__))
|
| 20 |
|
|
@@ -42,7 +42,7 @@ def setup_vectorstore(documents):
|
|
| 42 |
def create_chain(vectorstores):
|
| 43 |
llm = ChatGroq(
|
| 44 |
api_key=secret,
|
| 45 |
-
model="
|
| 46 |
temperature=0
|
| 47 |
)
|
| 48 |
retriever = vectorstores.as_retriever()
|
|
|
|
| 14 |
# Install Poppler and Tesseract in the runtime environment
|
| 15 |
os.system("apt-get update && apt-get install -y poppler-utils tesseract-ocr")
|
| 16 |
|
| 17 |
+
secret = os.getenv('Groq_api')
|
| 18 |
|
| 19 |
working_dir = os.path.dirname(os.path.abspath(__file__))
|
| 20 |
|
|
|
|
| 42 |
def create_chain(vectorstores):
|
| 43 |
llm = ChatGroq(
|
| 44 |
api_key=secret,
|
| 45 |
+
model="llama-3.1-8b-instant",
|
| 46 |
temperature=0
|
| 47 |
)
|
| 48 |
retriever = vectorstores.as_retriever()
|