Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def extract_relevant_context(question, documents):
|
|
64 |
|
65 |
# Generate response using RAG Prompt
|
66 |
def generate_response(question, final_context):
|
67 |
-
with st.spinner("π Generating
|
68 |
prompt = PromptTemplate(template=rag_prompt, input_variables=["question", "context"])
|
69 |
chain = prompt | llm
|
70 |
response = chain.invoke({"question": question, "context": final_context})
|
|
|
64 |
|
65 |
# Generate response using RAG Prompt
|
66 |
def generate_response(question, final_context):
|
67 |
+
with st.spinner("π Generating Response..."):
|
68 |
prompt = PromptTemplate(template=rag_prompt, input_variables=["question", "context"])
|
69 |
chain = prompt | llm
|
70 |
response = chain.invoke({"question": question, "context": final_context})
|