Spaces:
Sleeping
Sleeping
robertselvam
commited on
Commit
•
cdf164f
1
Parent(s):
bb5f283
Update app.py
Browse files
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 |
-
|
225 |
-
history[-1][1] =
|
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:
|