From 58fa3b8dc021da5054073fe68d208ad18f9ebc6f Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 8 Jun 2023 17:17:27 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(=5F=5Fmain=5F=5F.py):=20igno?= =?UTF-8?q?re=20type=20error=20for=20multiprocess=20import=20=F0=9F=90=9B?= =?UTF-8?q?=20fix(=5F=5Fmain=5F=5F.py):=20rename=20path=20variable=20to=20?= =?UTF-8?q?frontend=5Fpath=20for=20clarity=20The=20first=20change=20fixes?= =?UTF-8?q?=20a=20type=20error=20for=20the=20multiprocess=20import.=20The?= =?UTF-8?q?=20second=20change=20renames=20the=20path=20variable=20to=20fro?= =?UTF-8?q?ntend=5Fpath=20to=20improve=20clarity=20and=20readability=20of?= =?UTF-8?q?=20the=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/langflow/__main__.py b/src/backend/langflow/__main__.py index 8c9281862..4a00802c9 100644 --- a/src/backend/langflow/__main__.py +++ b/src/backend/langflow/__main__.py @@ -1,7 +1,7 @@ import sys import time import httpx -from multiprocess import Process, cpu_count +from multiprocess import Process, cpu_count # type: ignore import platform from pathlib import Path @@ -109,8 +109,8 @@ def serve( app = create_app() # get the directory of the current file if not path: - path = Path(__file__).parent - static_files_dir = path / "frontend" + frontend_path = Path(__file__).parent + static_files_dir = frontend_path / "frontend" else: static_files_dir = Path(path) app.mount(