Skip to content

Commit 3762152

Browse files
authored
[docs] Update docs with Youtube demo video, plus gifs (#1247)
[docs] Update docs with Youtube demo video, plus gifs Gifs courtesy Zak. How Verified: * yarn start
2 parents f4724cc + 5e82c1f commit 3762152

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

aiconfig-docs/docs/gradio-notebook.md

+27-10
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ import constants from '@site/core/tabConstants';
88

99
# Gradio Notebooks
1010

11-
[Gradio Notebook](https://huggingface.co/spaces/lastmileai/gradio-notebook-template) is a Gradio custom component that creates a notebook playground on Hugging Face Spaces with only [8-lines of code](https://huggingface.co/spaces/lastmileai/gradio-notebook-template/blob/main/app.py)!
11+
[Gradio Notebook](https://huggingface.co/spaces/lastmileai/gradio-notebook-template) is a notebook component for generative AI that offers the fastest way to create a Hugging Face space in [< 10 lines of code](https://huggingface.co/spaces/lastmileai/gradio-notebook-template/blob/main/app.py), and a familiar notebook interface for interacting with any combination of text, image and audio models in a single space.
1212

1313
You can:
1414

15-
- Use any model (and chain models together!) in a single Space
16-
- Play around with models in any format (text, audio image)
17-
- Share Space results with friends
15+
- Use any combination of text, image, or audio models in a single space, and even chain models together.
16+
- Experiment with models using a pre-built notebook UI, which is a familiar, intuitive interface for multimodal interaction.
17+
- Share space outputs with friends via a shareable URL.
18+
- Download your space config (prompts and model settings) as an aiconfig JSON file, and use it in your application via the [AIConfig SDK](#gradio-notebook-api).
19+
20+
## 5-minute Video Tutorial
21+
22+
<div align="center">
23+
<iframe width="560" height="315" src="https://www.youtube.com/embed/FlwINB9RmKk?si=j6UeGZhYOpmjA678" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
24+
</div>
1825

1926
## Examples
2027

@@ -31,12 +38,18 @@ You can:
3138

3239
## Start here if you are a ...
3340

34-
- [Creator](#for-space-creators)
35-
- [Viewer](#features)
36-
- [Gradio Notebook API (for Developers)](#gradio-notebook-api)
41+
- [Hugging Face Space Creator](#for-space-creators)
42+
- [Space Viewer](#features)
43+
- [Developer (Gradio Notebook API)](#gradio-notebook-api)
3744

3845
## Features
3946

47+
<div align="center">
48+
<picture>
49+
![Demo](https://s3.amazonaws.com/publicdata.lastmileai.com/Gradio_Post.gif)
50+
</picture>
51+
</div>
52+
4053
### Gradio Notebook Structure
4154

4255
Gradio Notebooks are inspired by [Jupyter notebooks](https://jupyter.org/). Each Notebook is made up of prompt cells. The prompt is associated with a model and we run that model’s inference API call whenever the run button is clicked.
@@ -65,7 +78,7 @@ You can set global parameters for your entire notebook. Click on **Global Parame
6578

6679
<div align="center">
6780
<picture>
68-
<img alt="notebook" src="https://github.com/lastmile-ai/aiconfig/assets/81494782/631f33ac-cf66-4e40-a7aa-c28d37b2ffad" width="800"/>
81+
![Parameters](https://github.com/lastmile-ai/aiconfig/assets/25641935/008ad009-4799-4239-9597-f13358728cb3)
6982
</picture>
7083
</div>
7184

@@ -88,7 +101,7 @@ The image_gen prompt below uses the output of the prompt_1 using handlebars synt
88101

89102
<div align="center">
90103
<picture>
91-
<img alt="notebook" src="https://github.com/lastmile-ai/aiconfig/assets/81494782/78636283-79d3-43b9-ab13-d0cd1513b38f" width="800"/>
104+
![Chaining](https://github.com/lastmile-ai/aiconfig/assets/25641935/f0a8db93-b08e-4562-8b15-d3a586ad6b09)
92105
</picture>
93106
</div>
94107

@@ -113,7 +126,11 @@ Reasons for Downloading:
113126

114127
Click the share button on the top right to get a link to a read-only copy of your Space to share with the rest of the world!
115128

116-
![sharing](https://github.com/lastmile-ai/aiconfig/assets/81494782/ceadc825-9df3-4192-b033-117ee1d40590)
129+
<div align="center">
130+
<picture>
131+
![Sharing](https://github.com/lastmile-ai/aiconfig/assets/25641935/43df45b3-594b-402b-8ec2-79ffed1c40ef)
132+
</picture>
133+
</div>
117134

118135
## For Space creators
119136

0 commit comments

Comments
 (0)