https://github.com/ahsanayaz/ng-ai-comments-moderation
A demo app showing how to moderate comments in an Angular app using Gemini models
https://github.com/ahsanayaz/ng-ai-comments-moderation
angular gemini gemini-api gemini-flash gemini-pro
Last synced: 6 months ago
JSON representation
A demo app showing how to moderate comments in an Angular app using Gemini models
- Host: GitHub
- URL: https://github.com/ahsanayaz/ng-ai-comments-moderation
- Owner: AhsanAyaz
- Created: 2024-09-26T16:01:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-26T18:34:30.000Z (about 1 year ago)
- Last Synced: 2025-03-25T10:40:41.803Z (6 months ago)
- Topics: angular, gemini, gemini-api, gemini-flash, gemini-pro
- Language: HTML
- Homepage: https://ahsanayaz.github.io/ng-ai-comments-moderation/
- Size: 937 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular & Gemini Comment Moderation
The project demonstrates how we can use Google Gemini Models to analyze a comment from a text area and prevent users from submitting toxic comments.
[YouTube Video](https://youtu.be/QKnhgsaQGyM)

## How to use
Update the `app.config.ts` with your own [Gemini Api Key](https://aistudio.google.com/app/apikey).
> Note: do not commit your api key. especially if the repository is public
## Development server
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.
## Code scaffolding
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`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.