From f341971eae5e6116a956e48cc781c62166962786 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 15 Dec 2024 23:41:17 -0800 Subject: [PATCH] fix --- backend/open_webui/retrieval/loaders/main.py | 3 ++- backend/open_webui/socket/main.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index ec9a1a703..a9372f65a 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -1,6 +1,7 @@ import requests import logging import ftfy +import sys from langchain_community.document_loaders import ( BSHTMLLoader, @@ -18,7 +19,7 @@ from langchain_community.document_loaders import ( YoutubeLoader, ) from langchain_core.documents import Document -from open_webui.env import SRC_LOG_LEVELS +from open_webui.env import SRC_LOG_LEVELS, GLOBAL_LOG_LEVEL logging.basicConfig(stream=sys.stdout, level=GLOBAL_LOG_LEVEL) log = logging.getLogger(__name__) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index c0f45c9a0..8343be666 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -1,5 +1,3 @@ -# TODO: move socket to webui app - import asyncio import socketio import logging