https://github.com/orhanerday/DALLE-Examples
https://github.com/orhanerday/DALLE-Examples
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/orhanerday/DALLE-Examples
- Owner: orhanerday
- Created: 2022-11-05T07:52:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T08:00:43.000Z (over 2 years ago)
- Last Synced: 2025-03-18T14:49:20.923Z (7 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DALL-E Examples
### The following HTML forms are available for DALL-E operations
* Generate Image
* Edit Image
* Create Image Variations## Using Docker
Build the image
```shell
docker build -t dalle-examples .
```
or pull from Docker Hub```shell
docker pull orhan55555/dallephp
```Run the app
```shell
docker run -p 8000:8000 -e OPENAI_API_KEY=sk-rf... dalle-examples
```## Getting started
Before you get starting, you should set OPENAI_API_KEY with the following commands;_Powershell_
```powershell
$Env:OPENAI_API_KEY = "sk-gjtv....."
```_Cmd_
```cmd
set OPENAI_API_KEY=sk-gjtv.....
```_Linux or macOS_
```shell
export OPENAI_API_KEY=sk-gjtv.....
```
> Getting issues while setting up env? Please read https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety article.### Add and update the depencencies
```shell
composer update
```### Run the server with the following command
```shell
php -S localhost:8000 -t .
```> This app is uses [OrhanErday/OpenAI](https://github.com/orhanerday/open-ai) library.