Rehman1603 commited on
Commit
2250322
·
verified ·
1 Parent(s): aaec2db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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'] = "d88cb7414e4039a84d2ed63f1b47daaaa4230c4c53a422045d8a30a9a3bc87d8"
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-70b-chat-hf", max_tokens=50)
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: