Skip to content

Commit

Permalink
Implementación de chatbot LauraV4
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaister9 committed Oct 3, 2024
1 parent fa39251 commit b0e6220
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/chatbot_laura/chatbot_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import pickle
from django.conf import settings
from dotenv import load_dotenv
import logging

logger = logging.getLogger(__name__)

load_dotenv()

Expand Down
3 changes: 3 additions & 0 deletions backend/chatbot_laura/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
from channels.generic.websocket import AsyncWebsocketConsumer
import json
from .chatbot_logic import search, df, index
import logging

logger = logging.getLogger(__name__)

class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
Expand Down

0 comments on commit b0e6220

Please sign in to comment.