robertselvam commited on
Commit
cdf164f
1 Parent(s): bb5f283

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -221,8 +221,8 @@ class LangChain_Document_QA:
221
  response = chat_completion.choices[0].message.content
222
 
223
  if ":" in response:
224
- message = re.sub(r'^.*:', '', message)
225
- history[-1][1] = message.strip()
226
  history_state.value = history
227
  return history
228
  # except:
 
221
  response = chat_completion.choices[0].message.content
222
 
223
  if ":" in response:
224
+ response = re.sub(r'^.*:', '', response)
225
+ history[-1][1] = response.strip()
226
  history_state.value = history
227
  return history
228
  # except: