https://github.com/archihalder/text-gen
A Generative Text App using PaLM 2 API
https://github.com/archihalder/text-gen
palm-api text-generation
Last synced: about 1 year ago
JSON representation
A Generative Text App using PaLM 2 API
- Host: GitHub
- URL: https://github.com/archihalder/text-gen
- Owner: archihalder
- License: mit
- Created: 2023-12-01T14:56:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T15:26:37.000Z (about 2 years ago)
- Last Synced: 2025-02-13T02:53:58.717Z (over 1 year ago)
- Topics: palm-api, text-generation
- Language: JavaScript
- Homepage:
- Size: 357 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text-Gen
A Generative Text App using Google PaLM API
## Generate an API Key
- Click [here](https://makersuite.google.com/app/apikey) to create a Google Cloud API key.
- Paste your API key in the place of `YOUR_API_KEY` in [Usage](#usage) section.
## Usage
1. Install all the required packages
```bash
npm install
```
2. Create `.env` file in the root directory and add your `API_KEY`
```bash
echo "API_KEY={YOUR_API_KEY}" >> .env
```
3. Start the backend
```bash
npm run start:backend
```
4. Start the frontend on a separate terminal
```bash
npm run start:frontend
```
5. Use the app