49 أسطر
720 B
Markdown
49 أسطر
720 B
Markdown
# Simple Example To Using Ghaymah GenAI
|
|
|
|
this is the Simple Example to help anyone to use Ghaymah GenAI in a professional way.
|
|
|
|
## Requirements
|
|
- python 3.12 or later
|
|
|
|
## Create a new environment:
|
|
|
|
```bash
|
|
$ python -m venv Gan-env
|
|
```
|
|
|
|
## Activate it:
|
|
|
|
## On Windows (cmd):
|
|
|
|
```bash
|
|
$ Gan-env\Scripts\activate
|
|
```
|
|
|
|
## On Mac/Linux:
|
|
|
|
```bash
|
|
$ source Gan-env/bin/activate
|
|
```
|
|
|
|
## Installation
|
|
|
|
### Install the required packages
|
|
|
|
```bash
|
|
$ pip install -r requirements.txt
|
|
```
|
|
|
|
### Setup the environment variables
|
|
|
|
```bash
|
|
$ cp .env.example .env
|
|
```
|
|
|
|
Set your environment variables in the `.env` file. Like `API_KEY` value.
|
|
|
|
## Run The Example
|
|
|
|
```bash
|
|
$ python main.py
|
|
```
|