KarthickAdopleAI commited on
Commit
c4e9b62
1 Parent(s): b4fda70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -184,9 +184,9 @@ class LangChain_Document_QA:
184
  message = response.choices[0].text.strip()
185
  if ":" in message:
186
  message = re.sub(r'^.*:', '', message)
187
- history[-1][1] = message.strip()
188
- history_state.value = history
189
- return history
190
  except:
191
  history[-1][1] = "How can I help you?"
192
  history_state.value = history
 
184
  message = response.choices[0].text.strip()
185
  if ":" in message:
186
  message = re.sub(r'^.*:', '', message)
187
+ history[-1][1] = message.strip()
188
+ history_state.value = history
189
+ return history
190
  except:
191
  history[-1][1] = "How can I help you?"
192
  history_state.value = history