q a chat based web application #AMAR^S Gemini LLM Application
## Description
This project showcases the capabilities of the Gemini LLM by leveraging its API to generate various text formats, including:
- Creative text formats:
- Poems
- Code
- Scripts
- Musical pieces
- Emails
- Letters
- etc.
- Informative text formats:
- Answers to your questions
- Summaries of factual topics
- Translations between languages
## Getting Started
-
Prerequisites:
- Python (version 3.x)
- Google Cloud Platform (GCP) account with a valid Gemini API key
- Required Python libraries (listed in requirements.txt)
-
Installation:
- Clone this repository: git clone https://github.com/amarnani121/amarS-GEMINI-LLM
- Install dependencies: pip install -r requirements.txt
-
Set up API Key:
- Create a GCP project and enable the Gemini API.
- Obtain a Gemini API key and set it as an environment variable: bash export GEMINI_API_KEY=YOUR_API_KEY
-
Run the Application:
- Execute the main Python script (e.g., python main.py)
- Follow the prompts to interact with the Gemini LLM and generate text.
## Usage Examples
- Generating a poem: python main.py --format poem --prompt "Write a poem about the beauty of nature."
- Translating a sentence: python main.py --format translate --prompt "Hello, how are you?" --target_language french
## Features
- Multiple text formats: Supports a variety of creative and informative text formats.
- Flexible prompts: Allows customization of prompts to guide text generation.
- User-friendly interface: Provides clear instructions and prompts for interaction.
## Contributing
Pull requests are welcome! Please follow these guidelines:
- Fork this repository.
- Create a new branch for your changes.
- Make your changes and commit them with clear messages.
- Push your branch to your fork and submit a pull request.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
## Additional Information
- Gemini LLM Documentation:
- Project Updates: