Skip to content

Commit

Permalink
Merge pull request #380 from varrialeciro/main
Browse files Browse the repository at this point in the history
Added and managed ingestion status for files/url
  • Loading branch information
pieroit authored Aug 4, 2023
2 parents dde3a26 + 03992c5 commit 1b1faba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN curl -sL https://github.com/cheshire-cat-ai/admin-vue/releases/download/Admi
WORKDIR /app
RUN pip install -U pip && \
pip install --no-cache-dir . &&\
python3 -c "import nltk; nltk.download('punkt')" &&\
python3 -c "import nltk; nltk.download('punkt');nltk.download('averaged_perceptron_tagger')" &&\
python3 install_plugin_dependencies.py


Expand Down
4 changes: 2 additions & 2 deletions core/cat/routes/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async def check_notification():
while True:
# chat notifications (i.e. finished uploading)
if len(ccat.web_socket_notifications) > 0:
notification = ccat.web_socket_notifications[-1]
ccat.web_socket_notifications = ccat.web_socket_notifications[:-1]
# extract from FIFO list websocket notification
notification = ccat.web_socket_notifications.pop(0)
await manager.send_personal_message(notification, websocket)

await asyncio.sleep(1) # wait for 1 seconds before checking again
Expand Down

0 comments on commit 1b1faba

Please sign in to comment.