Remove some commented out code + add condition for the execution of make publish
This commit is contained in:
parent
8ee4b2b79e
commit
8a08ebdbe7
4 changed files with 22 additions and 10 deletions
23
Makefile
23
Makefile
|
|
@ -46,6 +46,11 @@ backend:
|
||||||
make install_backend
|
make install_backend
|
||||||
poetry run uvicorn langflow.main:app --port 7860 --reload --log-level debug
|
poetry run uvicorn langflow.main:app --port 7860 --reload --log-level debug
|
||||||
|
|
||||||
|
build_and_run:
|
||||||
|
echo 'Removing dist folder'
|
||||||
|
rm -rf dist
|
||||||
|
make build && poetry run pip install dist/*.tar.gz && poetry run langflow
|
||||||
|
|
||||||
build_frontend:
|
build_frontend:
|
||||||
cd src/frontend && CI='' npm run build
|
cd src/frontend && CI='' npm run build
|
||||||
cp -r src/frontend/build src/backend/langflow/frontend
|
cp -r src/frontend/build src/backend/langflow/frontend
|
||||||
|
|
@ -78,8 +83,22 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
make build
|
@while true; do \
|
||||||
poetry publish
|
read -p "Do you want to build and publish LangFlow? [y/n]: " yn; \
|
||||||
|
case "$$yn" in \
|
||||||
|
y|Y ) \
|
||||||
|
echo "Building..."; \
|
||||||
|
make build; \
|
||||||
|
echo "Publishing..."; \
|
||||||
|
poetry publish; \
|
||||||
|
break ;; \
|
||||||
|
n|N ) \
|
||||||
|
echo "Bye!!!"; \
|
||||||
|
break ;; \
|
||||||
|
* ) \
|
||||||
|
echo "Invalid response, please enter 'y' or 'n'.\n" ;; \
|
||||||
|
esac \
|
||||||
|
done
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo '----'
|
@echo '----'
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ chains:
|
||||||
- SQLDatabaseChain
|
- SQLDatabaseChain
|
||||||
- RetrievalQA
|
- RetrievalQA
|
||||||
- RetrievalQAWithSourcesChain
|
- RetrievalQAWithSourcesChain
|
||||||
- QAWithSourcesChain
|
|
||||||
- ConversationalRetrievalChain
|
- ConversationalRetrievalChain
|
||||||
- CombineDocsChain
|
- CombineDocsChain
|
||||||
documentloaders:
|
documentloaders:
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class Vertex:
|
||||||
if "Tool" not in self.output or template_dict["_type"].islower()
|
if "Tool" not in self.output or template_dict["_type"].islower()
|
||||||
else template_dict["_type"]
|
else template_dict["_type"]
|
||||||
)
|
)
|
||||||
# self.vertex_type = template_dict["_type"]
|
|
||||||
if self.base_type is None:
|
if self.base_type is None:
|
||||||
for base_type, value in ALL_TYPES_DICT.items():
|
for base_type, value in ALL_TYPES_DICT.items():
|
||||||
if self.vertex_type in value:
|
if self.vertex_type in value:
|
||||||
|
|
|
||||||
|
|
@ -60,12 +60,6 @@ class ChainCreator(LangChainTypeCreator):
|
||||||
logger.error(f"Chain {name} not loaded: {exc}")
|
logger.error(f"Chain {name} not loaded: {exc}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# def to_list(self) -> List[str]:
|
|
||||||
# custom_chains = list(get_custom_nodes("chains").keys())
|
|
||||||
# default_chains = list(self.type_to_loader_dict.keys())
|
|
||||||
|
|
||||||
# return default_chains + custom_chains
|
|
||||||
|
|
||||||
def to_list(self) -> List[str]:
|
def to_list(self) -> List[str]:
|
||||||
names = []
|
names = []
|
||||||
for _, chain in self.type_to_loader_dict.items():
|
for _, chain in self.type_to_loader_dict.items():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue