Skip to content

Commit 68bb998

Browse files
committed
make usage more prominent in readme
1 parent ba98d6c commit 68bb998

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ This repository contains a react-based starter app for using the [Multimodal Liv
66

77
Watch the demo of the Multimodal Live API [here](https://www.youtube.com/watch?v=J_q7JY1XxFE).
88

9-
---
9+
## Usage
1010

11-
To get started, [create a free Gemini API key](https://aistudio.google.com/apikey). We have provided several example applications on other branches of this repository:
11+
To get started, [create a free Gemini API key](https://aistudio.google.com/apikey) and add it to the `.env` file. Then:
12+
13+
```
14+
$ npm install && npm start
15+
```
16+
17+
We have provided several example applications on other branches of this repository:
1218

1319
- [demos/GenExplainer](https://github.com/google-gemini/multimodal-live-api-web-console/tree/demos/genexplainer)
1420
- [demos/GenWeather](https://github.com/google-gemini/multimodal-live-api-web-console/tree/demos/genweather)
1521
- [demos/GenList](https://github.com/google-gemini/multimodal-live-api-web-console/tree/demos/genlist)
1622

23+
## Example
24+
1725
Below is an example of an entire application that will use Google Search grounding and then render graphs using [vega-embed](https://github.com/vega/vega-embed):
1826

1927
```typescript
@@ -69,7 +77,7 @@ export function Altair() {
6977
};
7078
client.on("toolcall", onToolCall);
7179
return () => {
72-
client.off("toolcall", onToolCall);
80+
client.off("toolcall", onToolCall);
7381
};
7482
}, [client]);
7583

@@ -84,14 +92,6 @@ export function Altair() {
8492
}
8593
```
8694

87-
## Usage
88-
89-
Add your Gemini API key to `.env` then:
90-
91-
```
92-
$ npm install && npm start
93-
```
94-
9595
## development
9696

9797
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

0 commit comments

Comments
 (0)