Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -268,7 +268,7 @@ async def on_message(message: cl.Message):
|
|
268 |
await cl.Message(content=GoogleTranslator(source='auto', target='fr').translate(answer)).send()
|
269 |
|
270 |
#search = vectorstore.similarity_search(message.content,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}})
|
271 |
-
search = Search(message.content, cl.user_session.get("selectRequest"))
|
272 |
|
273 |
#os.environ["GOOGLE_CSE_ID"] = os.getenv('GOOGLE_CSE_ID')
|
274 |
#os.environ["GOOGLE_API_KEY"] = os.getenv('GOOGLE_API_KEY')
|
|
|
268 |
await cl.Message(content=GoogleTranslator(source='auto', target='fr').translate(answer)).send()
|
269 |
|
270 |
#search = vectorstore.similarity_search(message.content,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}})
|
271 |
+
search = await Search(message.content, cl.user_session.get("selectRequest"))
|
272 |
|
273 |
#os.environ["GOOGLE_CSE_ID"] = os.getenv('GOOGLE_CSE_ID')
|
274 |
#os.environ["GOOGLE_API_KEY"] = os.getenv('GOOGLE_API_KEY')
|