forked from ogabrielluiz/langflow-railway
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a FastAPI example that starts up a LangFlow instance. The example includes a README.md file with instructions on how to use the example, a main.py file, a pyproject.toml file with dependencies, a railway.json file with deployment configuration, and a requirements.txt file with the LangFlow dependency.
- Loading branch information
0 parents
commit a887073
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|
||
<!-- [![Deploy on Railway](https://railway.app/button.svg)]() --> | ||
## ✨ 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` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.poetry] | ||
name = "railway-langflow-template" | ||
version = "0.1.0" | ||
description = "This example starts up LangFlow" | ||
authors = ["Gabriel Almeida <[email protected]>"] | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
langflow |