Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -189,7 +189,7 @@ if st.button("Run Chatbot"):
|
|
| 189 |
relevant_docs = retriever.invoke(query)
|
| 190 |
context_text = "\n\n".join(doc.page_content for doc in relevant_docs)
|
| 191 |
|
| 192 |
-
prompt = prompt_template.invoke(context
|
| 193 |
|
| 194 |
with st.spinner(f"Generating response using {model_choice}..."):
|
| 195 |
model, is_chat = build_model(model_choice, temperature)
|
|
|
|
| 189 |
relevant_docs = retriever.invoke(query)
|
| 190 |
context_text = "\n\n".join(doc.page_content for doc in relevant_docs)
|
| 191 |
|
| 192 |
+
prompt = prompt_template.invoke({'context':context_text, 'question':query})
|
| 193 |
|
| 194 |
with st.spinner(f"Generating response using {model_choice}..."):
|
| 195 |
model, is_chat = build_model(model_choice, temperature)
|