DrishtiSharma commited on
Commit
54abc04
Β·
verified Β·
1 Parent(s): 04c0f15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 AI response..."):
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})