Skip to content

Commit 840c2a9

Browse files
committed
Implement a drawing recognition game
1 parent 68d392c commit 840c2a9

24 files changed

+5657
-4583
lines changed

README.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
# GuessTheDrawing
1+
# Angular Web Audio melodies sample
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.1.
3+
Developer sample written in Angular demonstrating Gemini multimodal (image and audio) input and understanding. The user enters a prompt and the app generates images via VertexAI’s image generation which the user can after that preview in a three-dimensional gallery. The user has an input where they can ask a question about the images. Using Web Audio’s Speech Synthesis API we read Gemini’s answer for the images.
44

5-
## Development server
5+
## Pre-requisites
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
7+
0. Node.js and npm
8+
* Download and install Go: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
89

9-
## Code scaffolding
1010

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
11+
0. Gemini API key
12+
* Launch Google AI Studio: https://aistudio.google.com/
13+
* Click “Get API Key”
1214

13-
## Build
15+
## Getting started
1416

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
17+
Compile and run the app:
1618

17-
## Running unit tests
19+
```shell
20+
npm i
21+
npm start
22+
```
1823

19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24-
25-
## Further help
26-
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
24+
In the text box with placeholder "API key" enter your Gemini API key. You can find instructions how to use the app under "Instructions" when you open the user interface.

angular.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"options": {
1616
"outputPath": "dist/guess-the-drawing",
1717
"index": "src/index.html",
18+
"baseHref" : "/gemini-angular-drawing-demo/",
1819
"browser": "src/main.ts",
1920
"polyfills": [
2021
"zone.js"
@@ -25,6 +26,7 @@
2526
"src/assets"
2627
],
2728
"styles": [
29+
"@angular/material/prebuilt-themes/deeppurple-amber.css",
2830
"src/styles.css"
2931
],
3032
"scripts": [],
@@ -89,12 +91,16 @@
8991
"src/assets"
9092
],
9193
"styles": [
94+
"@angular/material/prebuilt-themes/deeppurple-amber.css",
9295
"src/styles.css"
9396
],
9497
"scripts": []
9598
}
9699
}
97100
}
98101
}
102+
},
103+
"cli": {
104+
"analytics": "04fbee5e-ef1b-4afb-9264-0cdf022a867f"
99105
}
100106
}

docs/favicon.ico

14.7 KB
Binary file not shown.

docs/index.html

Lines changed: 15 additions & 0 deletions
Large diffs are not rendered by default.

docs/main-KBPHIRMF.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main-OIXGM57D.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main-RPE5WSS6.js

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main-S6UODJ5H.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/polyfills-LZBJRJJE.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/styles-5R6CU2RA.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)