aayushxrj / aayushxrj/Pluto.ai

cl.Message() update() not working aysnchronously

Abierto
#3 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug good first issue
Lenguaje dominante
Python
Estrellas
5
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm facing an issue where the `cl.Message().update()` method is not updating the message content asynchronously as expected in my file processing application.

Here's the relevant part of my code:

```
@cl.on_chat_start
async def start():
# ...

msg = cl.Message(content=f"Processing `{file.name}`...", disable_feedback=True)
await msg.send()

# Process the file and split into chunks
chunks = split_into_chunks(file)

msg.content = f"Creating chunks for `{file.name}`..."
await msg.update()

# Store the data in form of embeddings
vectordb = store_embeddings(chunks)

msg.content = f"Creating embeddings for `{file.name}`. . ."
await msg.update()

# ...
msg.content = f"`{file.name}` processed. You can now ask questions!"
await msg.update()
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.