datacipen commited on
Commit
a954c4e
1 Parent(s): 5ba2a68

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -4
main.py CHANGED
@@ -23,7 +23,6 @@ from langchain_core.tracers.context import tracing_v2_enabled
23
  import chainlit as cl
24
  from chainlit.input_widget import TextInput, Select, Switch, Slider
25
 
26
- from pyscript import Element
27
  from deep_translator import GoogleTranslator
28
 
29
  @cl.password_auth_callback
@@ -190,9 +189,6 @@ async def on_message(message: cl.Message):
190
 
191
  await cl.Message(content=GoogleTranslator(source='auto', target='fr').translate(answer)).send()
192
 
193
- msg_element = Element("css-oa138a")
194
- msg_element.element.innerHTML = "<div>" + message.content + "</div>"
195
-
196
  search = vectorstore.similarity_search(message.content,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}})
197
  if len(search) > 0:
198
  test = []
 
23
  import chainlit as cl
24
  from chainlit.input_widget import TextInput, Select, Switch, Slider
25
 
 
26
  from deep_translator import GoogleTranslator
27
 
28
  @cl.password_auth_callback
 
189
 
190
  await cl.Message(content=GoogleTranslator(source='auto', target='fr').translate(answer)).send()
191
 
 
 
 
192
  search = vectorstore.similarity_search(message.content,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}})
193
  if len(search) > 0:
194
  test = []