Skip to content

Commit

Permalink
fix: comfort precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
taprosoft committed Dec 17, 2024
1 parent 63590a4 commit c16051c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions libs/ktem/ktem/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
from theflow.settings import settings
from theflow.utils.modules import import_dotted_string

BASE_PATH = os.environ.get('GRADIO_ROOT_PATH', '')
BASE_PATH = os.environ.get("GRADIO_ROOT_PATH", "")


class BaseApp:
"""The main app of Kotaemon
Expand Down Expand Up @@ -56,9 +57,7 @@ def __init__(self):
self._pdf_view_js = self._pdf_view_js.replace(
"PDFJS_PREBUILT_DIR",
pdf_js_dist_dir,
).replace(
"GRADIO_ROOT_PATH", BASE_PATH
)
).replace("GRADIO_ROOT_PATH", BASE_PATH)
with (dir_assets / "js" / "svg-pan-zoom.min.js").open() as fi:
self._svg_js = fi.read()

Expand Down
3 changes: 2 additions & 1 deletion libs/ktem/ktem/utils/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

from kotaemon.base import RetrievedDocument

BASE_PATH = os.environ.get('GRADIO_ROOT_PATH', '')
BASE_PATH = os.environ.get("GRADIO_ROOT_PATH", "")


def is_close(val1, val2, tolerance=1e-9):
return abs(val1 - val2) <= tolerance
Expand Down

0 comments on commit c16051c

Please sign in to comment.