refac: remove unnecessary prints from thought
This commit is contained in:
parent
09f508ed24
commit
bf6fbdb340
6 changed files with 15 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ WORKDIR /app
|
||||||
RUN apt-get update && apt-get install git -y
|
RUN apt-get update && apt-get install git -y
|
||||||
|
|
||||||
COPY --from=backend_build /app/dist/*.whl /app/
|
COPY --from=backend_build /app/dist/*.whl /app/
|
||||||
RUN pip install langflow-0.0.19-py3-none-any.whl
|
RUN pip install langflow-0.0.21-py3-none-any.whl
|
||||||
RUN rm *.whl
|
RUN rm *.whl
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,10 @@ def get_load(data: dict[str, Any]):
|
||||||
result = "Error: Type should be either agent, chain or llm"
|
result = "Error: Type should be either agent, chain or llm"
|
||||||
thought = ""
|
thought = ""
|
||||||
|
|
||||||
|
# Remove unnecessary data from response
|
||||||
|
begin = thought.rfind(message)
|
||||||
|
thought = thought[(begin + len(message)) :]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"result": result,
|
"result": result,
|
||||||
"thought": re.sub(
|
"thought": re.sub(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "langflow"
|
name = "langflow"
|
||||||
version = "0.0.19"
|
version = "0.0.21"
|
||||||
description = "Backend for Langflow"
|
description = "Backend for Langflow"
|
||||||
authors = ["Ibis Prevedello <ibiscp@gmail.com>"]
|
authors = ["Ibis Prevedello <ibiscp@gmail.com>"]
|
||||||
# packages = [
|
# packages = [
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
VERSION="0.1.0"
|
# Read the contents of the JSON file
|
||||||
|
json=$(cat package.json)
|
||||||
|
|
||||||
|
# Extract the value of the "version" field using jq
|
||||||
|
VERSION=$(echo "$json" | jq -r '.version')
|
||||||
|
|
||||||
docker build -t logspace/frontend_build -f build.Dockerfile .
|
docker build -t logspace/frontend_build -f build.Dockerfile .
|
||||||
docker build --build-arg VERSION=$VERSION -t ibiscp/langflow_frontend:$VERSION .
|
docker build --build-arg VERSION=$VERSION -t ibiscp/langflow_frontend:$VERSION .
|
||||||
docker push ibiscp/langflow_frontend:$VERSION
|
docker push ibiscp/langflow_frontend:$VERSION
|
||||||
|
|
|
||||||
4
langflow/frontend/package-lock.json
generated
4
langflow/frontend/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "space_flow",
|
"name": "space_flow",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "space_flow",
|
"name": "space_flow",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.5",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@emotion/styled": "^11.10.5",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "space_flow",
|
"name": "space_flow",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.5",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue