Commit ·
926e78a
1
Parent(s): 3738bcd
first tutorial
Browse files- docs/img/create_project.webp +0 -0
- docs/img/rename_project.jpg +0 -0
- docs/intro.md +31 -25
- i18n/en/docusaurus-plugin-content-pages/index.tsx +1 -1
- src/components/Highlight.tsx +15 -0
- src/components/Showcase.tsx +16 -0
- src/components/index.tsx +1 -0
docs/img/create_project.webp
ADDED
|
docs/img/rename_project.jpg
ADDED
|
docs/intro.md
CHANGED
|
@@ -2,46 +2,52 @@
|
|
| 2 |
sidebar_position: 1
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
| 18 |
-
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
```
|
| 27 |
-
npm init docusaurus@latest my-website classic
|
| 28 |
-
```
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
-
cd my-website
|
| 40 |
-
npm run start
|
| 41 |
-
```
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.
|
|
|
|
| 2 |
sidebar_position: 1
|
| 3 |
---
|
| 4 |
|
| 5 |
+
import Highlight from '@site/src/components/Highlight';
|
| 6 |
+
import Showcase from '@site/src/components/Showcase';
|
| 7 |
|
| 8 |
+
# Piper in Action
|
| 9 |
|
| 10 |
+
Let's build your first AI pipeline **in less than 5 minutes**
|
| 11 |
|
| 12 |
+
Just in 5 minutes using `Chat GPT` and `Flux` you will create unique AI pipeline for generating **Picture of the Day!**
|
| 13 |
|
| 14 |
+
`Chat GPT` will retrieve latest world news and prepare prompt for `Flux`
|
| 15 |
|
| 16 |
+
`Flux` will generate 4 images what describe current day.
|
| 17 |
|
| 18 |
+
## Getting Started
|
|
|
|
| 19 |
|
| 20 |
+
Before make sure you have Piper set up in one of the following ways:
|
| 21 |
|
| 22 |
+
* [Self-hosted Piper](https://github.com/orgs/My-Piper/repositories) at your server
|
| 23 |
+
* [Piper Cloud](https://app.piper.my/en/signup) <Highlight color="#25c2a0">optimal</Highlight>
|
| 24 |
+
* Piper at your laptop <Highlight color="silver">soon</Highlight>
|
| 25 |
|
| 26 |
+
## Creating a project
|
| 27 |
|
| 28 |
+
At application menu go `Pipelines` → `Create`
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
<Showcase>
|
| 31 |
+

|
| 32 |
+
</Showcase>
|
| 33 |
|
| 34 |
+
In `Design` section rename project to `Picture of the Day`
|
| 35 |
|
| 36 |
+
<Showcase>
|
| 37 |
+

|
| 38 |
+
</Showcase>
|
| 39 |
|
| 40 |
+
Back to `Pipeline` section.
|
| 41 |
|
| 42 |
+
## Adding nodes
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
Add node `Ask Chat GPT` into the canvas.
|
| 45 |
|
| 46 |
+
Press at node and put question for Chat GPT:
|
| 47 |
+
|
| 48 |
+
```
|
| 49 |
+
Chat GPT, please:
|
| 50 |
+
1. Retrieve latest world news to today.
|
| 51 |
+
2. Prepare prompt for Flux to generate picture - Picture of the Day.
|
| 52 |
+
```
|
| 53 |
|
|
|
i18n/en/docusaurus-plugin-content-pages/index.tsx
CHANGED
|
@@ -21,7 +21,7 @@ function HomepageHeader() {
|
|
| 21 |
<Link
|
| 22 |
className="button button--secondary button--lg"
|
| 23 |
to="/docs/intro">
|
| 24 |
-
|
| 25 |
</Link>
|
| 26 |
</div>
|
| 27 |
</div>
|
|
|
|
| 21 |
<Link
|
| 22 |
className="button button--secondary button--lg"
|
| 23 |
to="/docs/intro">
|
| 24 |
+
Create First Pipeline
|
| 25 |
</Link>
|
| 26 |
</div>
|
| 27 |
</div>
|
src/components/Highlight.tsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
|
| 3 |
+
const Highlight = ({children, color}) => (
|
| 4 |
+
<span
|
| 5 |
+
style={{
|
| 6 |
+
backgroundColor: color,
|
| 7 |
+
borderRadius: '2px',
|
| 8 |
+
color: '#fff',
|
| 9 |
+
padding: '0.2rem',
|
| 10 |
+
}}>
|
| 11 |
+
{children}
|
| 12 |
+
</span>
|
| 13 |
+
);
|
| 14 |
+
|
| 15 |
+
export default Highlight
|
src/components/Showcase.tsx
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
|
| 3 |
+
const Showcase = ({children}) => (
|
| 4 |
+
<div
|
| 5 |
+
style={{
|
| 6 |
+
margin: '20px 0',
|
| 7 |
+
overflow: 'hidden',
|
| 8 |
+
borderRadius: '5px',
|
| 9 |
+
backgroundColor: 'silver',
|
| 10 |
+
width: '90%'
|
| 11 |
+
}}>
|
| 12 |
+
{children}
|
| 13 |
+
</div>
|
| 14 |
+
);
|
| 15 |
+
|
| 16 |
+
export default Showcase
|
src/components/index.tsx
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "./Highlight"
|