diff --git a/README.md b/README.md index 9c4cd63..6a14081 100644 --- a/README.md +++ b/README.md @@ -70,11 +70,6 @@ graph TB 6. If it fails 10 times in a row, it moves on to the next approach. # Examples -## OCR -```bash -gptdeploy --description "Generate QR code from URL" --test "https://www.example.com" -``` -![](res/qr_example.png) ## 3d model info ```bash gptdeploy --description "Given a 3d object, return vertex count and face count" --test "https://raw.githubusercontent.com/polygonjs/polygonjs-assets/master/models/wolf.obj" @@ -95,14 +90,122 @@ gptdeploy --description "Create mel spectrograms from audio file" --test "https: ```bash gptdeploy --description "Convert text to speech" --test "Hello, welcome to GPT Deploy!" ``` -![](res/text_to_speech_example.png) -wav: - +[![](res/text_to_speech_example.png)](res/text_to_speech_example.wav) +## OCR +```bash +gptdeploy --description "Generate QR code from URL" --test "https://www.example.com" +``` +![](res/qr_example.png) + + +# TO BE TESTED +## ASCII Art Generator +```bash +gptdeploy --description "Convert image to ASCII art" --test "https://images.unsplash.com/photo-1602738328654-51ab2ae6c4ff" +``` +## Color Palette Generator +```bash +gptdeploy --description "creates aesthetically pleasing color palettes based on a seed color, using color theory principles like complementary or analogous colors" --test "red" +``` +## Password Strength Checker +```bash +gptdeploy --description "Given a password, return a score from 1 to 10 indicating the strength of the password" --test "Pa$$w0rd" +``` +## Morse Code Translator +```bash +gptdeploy --description "Convert text to morse code" --test "Hello, welcome to GPT Deploy!" +``` +## IP Geolocation +```bash +gptdeploy --description "Given an IP address, return the geolocation information" --test "142.251.46.174" +``` +## Rhyme Generator +```bash +gptdeploy --description "Given a word, return a list of rhyming words using the datamuse api" --test "hello" +``` +## Currency Converter +```bash +gptdeploy --description "Converts any currency into any other" --test "1 usd to eur" +``` +## Image Resizer +```bash +gptdeploy --description "Given an image, resize it to a specified width and height" --test "https://images.unsplash.com/photo-1602738328654-51ab2ae6c4ff" +``` +## Weather API +```bash +gptdeploy --description "Given a city, return the current weather" --test "Berlin" +``` + +## Sudoku Solver +```bash +gptdeploy --description "Given a sudoku puzzle, return the solution" --test "[[2, 5, 0, 0, 3, 0, 9, 0, 1], [0, 1, 0, 0, 0, 4, 0, 0, 0], [4, 0, 7, 0, 0, 0, 2, 0, 8], [0, 0, 5, 2, 0, 0, 0, 0, 0], [0, 0, 0, 0, 9, 8, 1, 0, 0], [0, 4, 0, 0, 0, 3, 0, 0, 0], [0, 0, 0, 3, 6, 0, 0, 7, 2], [0, 7, 0, 0, 0, 0, 0, 0, 3], [9, 0, 3, 0, 0, 0, 6, 0, 4]]" +``` + +## Carbon Footprint Calculator +```bash +gptdeploy --description "Estimate a company's carbon footprint based on factors like transportation, electricity usage, waste production etc..." --test "Jina AI" +``` + +## Real Estate Valuation Estimator +```bash +gptdeploy --description "Create a microservice that estimates the value of a property based on factors like location, property type, age, and square footage." --test "Berlin Friedrichshain, Flat, 100m², 10 years old" +``` +## Chemical Structure Drawing +```bash +gptdeploy --description "Convert a chemical formula into a 2D chemical structure diagram" --test "C6H6" +``` + +## Gene Sequence Alignment +```bash +gptdeploy --description "Align two DNA or RNA sequences using the Needleman-Wunsch algorithm" --test "AGTC, GTCA" +``` + +## Markdown to HTML Converter +```bash +gptdeploy --description "Convert markdown to HTML" --test "# Hello, welcome to GPT Deploy!" +``` + +## Barcode Generator +```bash +gptdeploy --description "Generate a barcode from a string" --test "Hello, welcome to GPT Deploy!" +``` + +## File Compression +```bash +gptdeploy --description "Compress a file using the gzip algorithm" --test "content of the file: Hello, welcome to GPT Deploy!" +``` + +## Meme Generator +```bash +gptdeploy --description "Generate a meme from an image and a caption" --test "Surprised Pikachu: https://media.wired.com/photos/5f87340d114b38fa1f8339f9/master/w_1600%2Cc_limit/Ideas_Surprised_Pikachu_HD.jpg, TOP:When you see GPT Deploy create and deploy a microservice in seconds" +``` + +## Watermarking Images +```bash +gptdeploy --description "Add a watermark (GPT Deploy) to an image" --test "https://images.unsplash.com/photo-1602738328654-51ab2ae6c4ff" +``` + +## File Metadata Extractor +```bash +gptdeploy --description "Extract metadata from a file" --test "https://images.unsplash.com/photo-1602738328654-51ab2ae6c4ff" +``` + +## Video Thumbnail Extractor +```bash +gptdeploy --description "Extract a thumbnail from a video" --test "http://techslides.com/demos/sample-videos/small.mp4" +``` + +## Gif Maker +```bash +gptdeploy --description "Create a gif from a list of images" --test "https://images.unsplash.com/photo-1564725075388-cc8338732289, https://images.unsplash.com/photo-1584555684040-bad07f46a21f, https://images.unsplash.com/photo-1584555613497-9ecf9dd06f68" +``` + +## Heatmap Generator +```bash +gptdeploy --description "Create a heatmap from an image and a list of relative coordinates" --test "[[0.1, 0.2], [0.3, 0.4], [0.5, 0.6], [0.2, 0.1], [0.7, 0.2], [0.4, 0.2]]" +``` + -## # 🔮 vision Use natural language interface to create, deploy and update your microservice infrastructure. @@ -134,4 +237,4 @@ Make sure it is only printed twice in case it changed. - [ ] bug: it can happen that the code generation is hanging forever - in this case aboard and redo the generation - [ ] feat: make playground more stylish by adding attributes like: clean design, beautiful, like it was made by a professional designer, ... -[//]: # ([![Watch the video](https://i.imgur.com/vKb2F1B.png)](https://user-images.githubusercontent.com/11627845/226220484-17810f7c-b184-4a03-9af2-3a977fbb014b.mov)) +[![Watch the video](https://i.imgur.com/vKb2F1B.png)](https://user-images.githubusercontent.com/11627845/226220484-17810f7c-b184-4a03-9af2-3a977fbb014b.mov) diff --git a/res/audio_to_mel_example.png b/res/audio_to_mel_example.png index a749811..28abc04 100644 Binary files a/res/audio_to_mel_example.png and b/res/audio_to_mel_example.png differ diff --git a/res/obj_info_example.png b/res/obj_info_example.png index 5daf493..d758363 100644 Binary files a/res/obj_info_example.png and b/res/obj_info_example.png differ diff --git a/res/qr_example.png b/res/qr_example.png index 50f5ba4..caca833 100644 Binary files a/res/qr_example.png and b/res/qr_example.png differ diff --git a/res/table_extraction_example.png b/res/table_extraction_example.png index b872308..07ba00a 100644 Binary files a/res/table_extraction_example.png and b/res/table_extraction_example.png differ diff --git a/res/text_to_speech_example.png b/res/text_to_speech_example.png index cd6711a..0ce2827 100644 Binary files a/res/text_to_speech_example.png and b/res/text_to_speech_example.png differ diff --git a/src/prompt_tasks.py b/src/prompt_tasks.py index cbf5889..f91cf45 100644 --- a/src/prompt_tasks.py +++ b/src/prompt_tasks.py @@ -127,11 +127,11 @@ def chain_of_thought_optimization(tag_name, file_name): def not_allowed(): return ''' -The executor is not allowed to use the GPU. -The executor is not allowed to access a database. -The executor is not allowed to access a display. -The executor is not allowed to access external apis. -The executor is not allowed to load data from the local file system it did not create. -The executor is not allowed to use a pre-trained model. +The executor must not use the GPU. +The executor must not access a database. +The executor must not access a display. +The executor must not access external apis except unless it is explicitly mentioned in the description. +The executor must not load data from the local file system unless it was created by the executor itself. +The executor is not allowed to use a pre-trained model unless it is explicitly mentioned in the description. The executor is not allowed to train a model. ''' \ No newline at end of file