diff --git a/README.md b/README.md new file mode 100644 index 0000000..d76cd53 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +--- +title: LangFlow +description: A LangFlow instance. +tags: + - langflow + - python +--- + +# FastAPI Example + +This example starts up a [LangFlow](https://github.com/logspace-ai/langflow.git) instance. + + +## ✨ Features + +- LangFlow +- Python 3 + +## 💁‍♀️ How to use + +- Deploy using the button 👆 +- Clone locally and install packages with Pip using `pip install -r requirements.txt` or Poetry using `poetry install` +- Connect to your project using `railway link` +- Run locally using `langflow` diff --git a/main.py b/main.py new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..318379f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[tool.poetry] +name = "railway-langflow-template" +version = "0.1.0" +description = "This example starts up LangFlow" +authors = ["Gabriel Almeida "] +license = "MIT" + +[tool.poetry.dependencies] +python = "^3.10" +langflow = "*" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/railway.json b/railway.json new file mode 100644 index 0000000..c57b944 --- /dev/null +++ b/railway.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://railway.app/railway.schema.json", + "build": { + "builder": "NIXPACKS" + }, + "deploy": { + "startCommand": "pyhton -m langflow --host 0.0.0.0 --port $PORT", + "restartPolicyType": "ON_FAILURE", + "restartPolicyMaxRetries": 10 + } +} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b154ad8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +langflow \ No newline at end of file