build: make langchain-serve optional

This commit is contained in:
Deepankar Mahapatro 2023-05-16 15:15:52 +05:30
commit 2eec5fb3a7
4 changed files with 4 additions and 4 deletions

View file

@ -80,7 +80,7 @@ def jcloud():
import click
try:
from lcserve.__main__ import serve_on_jcloud
from lcserve.__main__ import serve_on_jcloud # type: ignore
except ImportError:
click.secho(
"🚨 Please install langchain-serve to deploy Langflow server on Jina AI Cloud using `pip install langchain-serve`",

View file

@ -11,4 +11,4 @@ app.mount(
"/",
StaticFiles(directory=static_files_dir, html=True),
name="static",
)
)