harshitv804 commited on
Commit
0a887ab
1 Parent(s): f69a536

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,11 +67,12 @@ ANSWER
67
  prompt = PromptTemplate(template=custom_prompt_template,
68
  input_variables=['context', 'question', 'chat_history'])
69
 
 
70
  llm = Together(
71
  model="mistralai/Mistral-7B-Instruct-v0.2",
72
  temperature=0.7,
73
  max_tokens=1024,
74
- together_api_key=f"{os.environ.getattribute("TOGETHER_AI")}"
75
  )
76
 
77
  qa = ConversationalRetrievalChain.from_llm(
 
67
  prompt = PromptTemplate(template=custom_prompt_template,
68
  input_variables=['context', 'question', 'chat_history'])
69
 
70
+ TOGETHER_AI_API= os.environ.getattribute("TOGETHER_AI")
71
  llm = Together(
72
  model="mistralai/Mistral-7B-Instruct-v0.2",
73
  temperature=0.7,
74
  max_tokens=1024,
75
+ together_api_key=f"{TOGETHER_AI_API}"
76
  )
77
 
78
  qa = ConversationalRetrievalChain.from_llm(