Merge branch 'dev' of https://github.com/logspace-ai/langflow into github_actions

This commit is contained in:
ogabrielluiz 2023-03-07 13:10:38 -03:00
commit 5fc4f85c10
7 changed files with 16 additions and 7 deletions

View file

@ -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

View file

@ -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(

View file

@ -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 = [

View file

@ -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

View file

@ -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",

View file

@ -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",

View file

@ -154,7 +154,7 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) {
}} }}
type="text" type="text"
disabled={lockChat} disabled={lockChat}
value={lockChat?"please wait for the response": chatValue} value={lockChat?"Thinking...": chatValue}
onChange={(e) => { onChange={(e) => {
setChatValue(e.target.value); setChatValue(e.target.value);
}} }}