Spaces:
Runtime error
Runtime error
Harrison Chase
commited on
Commit
·
de9944b
1
Parent(s):
2101eb6
initial commit
Browse files
README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
title: Langchain Demo
|
| 3 |
-
emoji: 💻
|
| 4 |
-
colorFrom: pink
|
| 5 |
-
colorTo: purple
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 3.16.1
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
license: apache-2.0
|
| 11 |
-
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LangChain-Gradio Template
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
This repo serves as a template for how to deploy a LangChain on Gradio.
|
| 4 |
+
This is particularly useful because you can easily deploy Gradio apps on Hugging Face spaces,
|
| 5 |
+
making it very easy to share you LangChain applications on there.
|
| 6 |
+
|
| 7 |
+
This repo contains an `app.py` file which has a template for a chatbot implementation.
|
| 8 |
+
This was heavily inspired [James Weaver's examples](https://huggingface.co/JavaFXpert).
|
| 9 |
+
|
| 10 |
+
## Adding your chain
|
| 11 |
+
To add your chain, you need to change the `load_chain` function in `app.py`.
|
| 12 |
+
Depending on the type of your chain, you may also need to change the inputs/outputs that occur later on (in the `chat` function).
|