Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"{
|
| 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(
|