Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added and managed ingestion status for files/url #380

Merged
merged 3 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading