fix: built applied to langflow_backend instead of langflow
This commit is contained in:
parent
589fe6c818
commit
dc6b69d065
9 changed files with 1410 additions and 1337 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -6,6 +6,9 @@ yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
|
# Mac
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
|
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -29,7 +29,9 @@ build_frontend:
|
||||||
build:
|
build:
|
||||||
make install_frontend
|
make install_frontend
|
||||||
make build_frontend
|
make build_frontend
|
||||||
poetry build --format sdist
|
cp -r langflow/frontend/build langflow/backend/langflow_backend/frontend
|
||||||
|
cd langflow/backend && poetry build --format sdist
|
||||||
|
rm -rf dist && mv langflow/backend/dist/ dist
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo '----'
|
@echo '----'
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
from langflow_backend.interface.loading import load_flow_from_json
|
|
||||||
3
langflow/backend/.gitignore
vendored
3
langflow/backend/.gitignore
vendored
|
|
@ -4,6 +4,9 @@ __pycache__/
|
||||||
*$py.class
|
*$py.class
|
||||||
notebooks
|
notebooks
|
||||||
|
|
||||||
|
# frontend
|
||||||
|
langflow_backend/frontend
|
||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
from langflow_backend.interface.loading import load_flow_from_json
|
||||||
|
|
@ -5,7 +5,7 @@ import typer
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from langflow.server import LangflowApplication
|
from langflow_backend.server import LangflowApplication
|
||||||
|
|
||||||
|
|
||||||
def serve(
|
def serve(
|
||||||
|
|
@ -15,7 +15,7 @@ def serve(
|
||||||
app = create_app()
|
app = create_app()
|
||||||
# get the directory of the current file
|
# get the directory of the current file
|
||||||
path = Path(__file__).parent
|
path = Path(__file__).parent
|
||||||
static_files_dir = path / "frontend/build"
|
static_files_dir = path / "frontend"
|
||||||
app.mount(
|
app.mount(
|
||||||
"/",
|
"/",
|
||||||
StaticFiles(directory=static_files_dir, html=True),
|
StaticFiles(directory=static_files_dir, html=True),
|
||||||
2725
langflow/backend/poetry.lock
generated
2725
langflow/backend/poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -6,6 +6,10 @@ authors = ["Ibis Prevedello <ibiscp@gmail.com>", "Gabriel Almeida <gabrielf.alme
|
||||||
packages = [
|
packages = [
|
||||||
{ include = "langflow_backend" },
|
{ include = "langflow_backend" },
|
||||||
]
|
]
|
||||||
|
include = ["frontend/build/*", "frontend/build/**/*"]
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
langflow = "langflow_backend.__main__:main"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
|
|
@ -16,6 +20,8 @@ beautifulsoup4 = "^4.11.2"
|
||||||
google-search-results = "^2.4.1"
|
google-search-results = "^2.4.1"
|
||||||
google-api-python-client = "^2.79.0"
|
google-api-python-client = "^2.79.0"
|
||||||
langchain = {git = "https://github.com/ibiscp/langchain.git", rev = "ibis"}
|
langchain = {git = "https://github.com/ibiscp/langchain.git", rev = "ibis"}
|
||||||
|
typer = "^0.7.0"
|
||||||
|
gunicorn = "^20.1.0"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
black = "^23.1.0"
|
black = "^23.1.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue