hf-spaces-and-subfolder

This commit is contained in:
Mendon Kissling 2024-05-28 11:11:11 -04:00
commit 2d9719946a
4 changed files with 30 additions and 20 deletions

View file

@ -22,17 +22,3 @@ You'll be presented with the following screen:
Name your Space, define the visibility (Public or Private), and click on **Duplicate Space** to start the installation process. When installation is finished, you'll be redirected to the Space's main page to start using Langflow right away! Name your Space, define the visibility (Public or Private), and click on **Duplicate Space** to start the installation process. When installation is finished, you'll be redirected to the Space's main page to start using Langflow right away!
## Run a starter project
Langflow provides a range of example flows to help you get started.
Once you get Langflow running in your Space, click on **New Project** in the top right corner of the screen.
Select a starter project from the list, set up your API keys, and click ⚡ Run. This will open up Langflow's Interaction Panel with the chat console, text inputs, and outputs ready to go.
For more information on the starter projects, see the guides below:
* [Basic prompting](/starter-projects/basic-prompting.mdx)
* [Memory chatbot](/starter-projects/memory-chatbot.mdx)
* [Blog writer](/starter-projects/blog-writer.mdx)
* [Document QA](/starter-projects/document-qa.mdx)

View file

@ -7,7 +7,7 @@ import Admonition from "@theme/Admonition";
<Admonition type="info"> <Admonition type="info">
Langflow v1.0 alpha is also available in [HuggingFace Spaces](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true). Try it out or follow the instructions [here](./huggingface-spaces) to install it locally. Langflow v1.0 alpha is also available in [HuggingFace Spaces](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true). Try it out or follow the instructions [here](./install-langflow##huggingface-spaces) to install it locally.
</Admonition> </Admonition>
@ -67,3 +67,22 @@ python -m langflow run
``` ```
3. Continue on to the [Quickstart](./quickstart.mdx). 3. Continue on to the [Quickstart](./quickstart.mdx).
## HuggingFace Spaces
HuggingFace provides a great alternative for running Langflow in their Spaces environment. This means you can run Langflow without any local installation required.
In a Chromium-based browser, go to the [Langflow Space](https://huggingface.co/spaces/Langflow/Langflow?duplicate=true) or [Langflow v1.0 alpha Preview Space](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true).
You'll be presented with the following screen:
<ZoomableImage
alt="Docusaurus themed image"
sources={{
light: "img/duplicate-space.png",
dark: "img/duplicate-space.png",
}}
style={{ width: "100%", margin: "20px auto" }}
/>
Name your Space, define the visibility (Public or Private), and click on **Duplicate Space** to start the installation process. When installation is finished, you'll be redirected to the Space's main page to start using Langflow right away!

View file

@ -15,7 +15,7 @@ This guide demonstrates how to build a basic prompt flow and modify that prompt
* [OpenAI API key](https://platform.openai.com) * [OpenAI API key](https://platform.openai.com)
<Admonition type="info"> <Admonition type="info">
Langflow v1.0 alpha is also available in [HuggingFace Spaces](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true). Try it out or follow the instructions [here](./huggingface-spaces) to install it locally. Langflow v1.0 alpha is also available in [HuggingFace Spaces](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true). Try it out or follow the instructions [here](./install-langflow##huggingface-spaces) to install it locally.
</Admonition> </Admonition>
## Hello World - Basic Prompting ## Hello World - Basic Prompting

View file

@ -14,9 +14,14 @@ module.exports = {
"index", "index",
"getting-started/install-langflow", "getting-started/install-langflow",
"getting-started/quickstart", "getting-started/quickstart",
"getting-started/huggingface-spaces", {
type: "category",
label: "Langflow Functionality",
items: [
"getting-started/canvas", "getting-started/canvas",
"getting-started/flows-components-collections", "getting-started/flows-components-collections",
],
},
"migration/possible-installation-issues", "migration/possible-installation-issues",
"getting-started/new-to-llms", "getting-started/new-to-llms",
], ],