This Python script, main.py
, provides a simple graphical user interface for generating lists of JSON data using the Google Generative AI. The script utilizes the Tkinter library for the graphical interface and relies on the google.generativeai
library for communication with the Generative AI model.
- Generate JSON with Your Keyword: Input your own JSON data as a reference to generate more data.
- Utilize Your Own JSON: Allows users to use their JSON as a seed for generating additional data.
- UX/UI
- Generate JSON with Your Keyword
- Utilize Your Own JSON
-
Clone the GitHub repository using the following command:
git clone https://github.com/Mini-Mark/json-data-generator-with-ai.git
-
Change your working directory to the project folder:
cd ./json-data-generator-with-ai
-
Install the project dependencies by running the following command:
pip install -r requirements.txt
-
Set up your Google Generative AI API key by following the instructions on the Google AI website. Insert after the
=
sign with your actual API key in the google_api_key variable inconfig.ini
-
Run the script using the following command:
python main.py
-
Open Browser and Navigate to
localhost:5000
- Enter the input JSON data in the prompt text field.
- Click the "Generate" button to generate more JSON data based on the provided input.
- The generated JSON data will be displayed in the bottom area.
- Click the "Copy" button to copy the generated JSON data to the clipboard or "Refresh" for generate again
This project is licensed under the MIT License.
- The script uses the Google Generative AI library for content generation.
Feel free to customize and enhance the script according to your needs. If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request.