Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from langchain_together import Together
|
|
5 |
import pdfplumber
|
6 |
|
7 |
# Set the API key with double quotes
|
8 |
-
os.environ['TOGETHER_API_KEY'] = "
|
9 |
|
10 |
def extract_text_from_pdf(pdf_file, max_pages=16):
|
11 |
text = ""
|
@@ -26,7 +26,7 @@ def Bot(text, question):
|
|
26 |
input_variables=['text', 'Questions'],
|
27 |
template=chat_template
|
28 |
)
|
29 |
-
llama3 = Together(model="meta-llama/Llama-3-
|
30 |
Generated_chat = LLMChain(llm=llama3, prompt=prompt)
|
31 |
|
32 |
try:
|
|
|
5 |
import pdfplumber
|
6 |
|
7 |
# Set the API key with double quotes
|
8 |
+
os.environ['TOGETHER_API_KEY'] = "c2f52626b97118b71c0c36f66eda4f5957c8fc475e760c3d72f98ba07d3ed3b5"
|
9 |
|
10 |
def extract_text_from_pdf(pdf_file, max_pages=16):
|
11 |
text = ""
|
|
|
26 |
input_variables=['text', 'Questions'],
|
27 |
template=chat_template
|
28 |
)
|
29 |
+
llama3 = Together(model="meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo", max_tokens=250)
|
30 |
Generated_chat = LLMChain(llm=llama3, prompt=prompt)
|
31 |
|
32 |
try:
|