sanuth123 commited on
Commit
16d82ce
·
verified ·
1 Parent(s): 18e2ce9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def respond(
59
  response = chain.invoke({"input": message})
60
 
61
  # Extract the answer from the response
62
- answer = response.get('answer', "Sorry, I couldn't find an answer.")
63
 
64
  # Add conversation to history
65
  history.append((message, answer))
 
59
  response = chain.invoke({"input": message})
60
 
61
  # Extract the answer from the response
62
+ answer = response['answer']
63
 
64
  # Add conversation to history
65
  history.append((message, answer))