datacipen commited on
Commit
78b733a
·
verified ·
1 Parent(s): 3444d1d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -216,7 +216,8 @@ async def on_message(message: cl.Message):
216
  newElement.innerHTML = '<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"></path></svg>' + response;
217
  parentElement.insertBefore(newElement, theFirstChild);
218
  return console.log(response);}""")
219
- displayAnswer(message.content)
 
220
 
221
  cb = cl.AsyncLangchainCallbackHandler()
222
  with tracing_v2_enabled():
 
216
  newElement.innerHTML = '<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"></path></svg>' + response;
217
  parentElement.insertBefore(newElement, theFirstChild);
218
  return console.log(response);}""")
219
+ response = message.content
220
+ displayAnswer(response)
221
 
222
  cb = cl.AsyncLangchainCallbackHandler()
223
  with tracing_v2_enabled():