mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-24 09:04:19 +01:00
docs: tabular layout
This commit is contained in:
231
README.md
231
README.md
@@ -98,99 +98,144 @@ jc delete <microservice id>
|
||||
|
||||
## Examples
|
||||
|
||||
<img src="res/teaser.png" alt="QR Code Generator" width="600" />
|
||||
|
||||
### Chemical Formula Visualization
|
||||
```bash
|
||||
generate --description "Convert a chemical formula into a 2D chemical structure diagram" --test "C=C, CN=C=O, CCC(=O)O" --path microservice
|
||||
```
|
||||
<img src="res/chemical_formula_example.png" alt="Chemical Formula Visualization" width="600" />
|
||||
|
||||
## Hacker News Search
|
||||
```bash
|
||||
generate --description "Given a search query, find articles on hacker news using the hacker news api and return a list of (title, author, website_link, first_image_on_the_website)" --test "searching for GPT gives results" --path microservice
|
||||
````
|
||||
<img src="res/hacker_news_example.png" alt="Hacker News Search" width="600" />
|
||||
|
||||
### Animal Detector
|
||||
```bash
|
||||
|
||||
gptdeploy generate --description "Given an image, return the image with bounding boxes of all animals (https://pjreddie.com/media/files/yolov3.weights, https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov3.cfg)" --test "https://images.unsplash.com/photo-1444212477490-ca407925329e contains animals" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/animal_detector_example.png" alt="Animal Detector" width="600" />
|
||||
|
||||
### Meme Generator
|
||||
```bash
|
||||
gptdeploy generate --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 discovered GPTDeploy" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/meme_example.png" alt="Meme Generator" width="600" />
|
||||
|
||||
### Rhyme Generator
|
||||
```bash
|
||||
gptdeploy generate --description "Given a word, return a list of rhyming words using the datamuse api" --test "hello" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/rhyme_generator_example.png" alt="Rhyme Generator" width="600" />
|
||||
|
||||
### Word Cloud Generator
|
||||
```bash
|
||||
gptdeploy generate --description "Generate a word cloud from a given text" --test "Lorem ipsum dolor sit amet, consectetur adipiscing elit." --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/word_cloud_example.png" alt="Word Cloud Generator" width="600" />
|
||||
|
||||
### 3d model info
|
||||
```bash
|
||||
gptdeploy generate --description "Given a 3d object, return vertex count and face count" --test "https://raw.githubusercontent.com/polygonjs/polygonjs-assets/master/models/wolf.obj" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/obj_info_example.png" alt="3D Model Info" width="600" />
|
||||
|
||||
### 2d rendering of 3d model
|
||||
```bash
|
||||
gptdeploy generate --description "create a 2d rendering of a whole 3d object and x,y,z object rotation using trimesh and pyrender.OffscreenRenderer with os.environ['PYOPENGL_PLATFORM'] = 'egl' and freeglut3-dev library" --test "input: https://graphics.stanford.edu/courses/cs148-10-summer/as3/code/as3/teapot.obj output: assert the image is not completely white or black" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/obj_render_example.gif" alt="2D Rendering of 3D Model" width="600" />
|
||||
|
||||
### Table extraction
|
||||
```bash
|
||||
gptdeploy generate --description "Given a URL, extract all tables as csv" --test "http://www.ins.tn/statistiques/90" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/table_extraction_example.png" alt="Table Extraction" width="600" />
|
||||
|
||||
### Audio to mel spectrogram
|
||||
```bash
|
||||
gptdeploy generate --description "Create mel spectrograms from audio file" --test "https://cdn.pixabay.com/download/audio/2023/02/28/audio_550d815fa5.mp3" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/audio_to_mel_example.png" alt="Audio to Mel Spectrogram" width="600" />
|
||||
|
||||
### Text to speech
|
||||
```bash
|
||||
gptdeploy generate --description "Convert text to speech" --test "Hello, welcome to GPT Deploy!" --model gpt-4 --path microservice
|
||||
```
|
||||
<a href=res/text_to_speech_example.wav><img src="res/text_to_speech_example.png" alt="Text to Speech" width="600" /></a>
|
||||
|
||||
<audio controls>
|
||||
<source src="res/text_to_speech_example.wav" type="audio/mpeg">
|
||||
Your browser does not support the audio element.
|
||||
</audio>
|
||||
|
||||
### Heatmap Generator
|
||||
```bash
|
||||
gptdeploy generate --description "Create a heatmap from an image and a list of relative coordinates" --test "https://images.unsplash.com/photo-1574786198875-49f5d09fe2d2, [[0.1, 0.2], [0.3, 0.4], [0.5, 0.6], [0.2, 0.1], [0.7, 0.2], [0.4, 0.2]]" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/heatmap_example.png" alt="Heatmap Generator" width="600" />
|
||||
|
||||
### QR Code Generator
|
||||
```bash
|
||||
gptdeploy generate --description "Generate QR code from URL" --test "https://www.example.com" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/qr_example.png" alt="QR Code Generator" width="600" />
|
||||
|
||||
### Mandelbrot Set Visualizer
|
||||
|
||||
```bash
|
||||
gptdeploy generate --description "Visualize the Mandelbrot set with custom parameters" --test "center=-0+1i, zoom=1.0, size=800x800, iterations=1000" --model gpt-4 --path microservice
|
||||
```
|
||||
<img src="res/mandelbrot_example.png" alt="Mandelbrot Set Visualizer" width="600" />
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>Chemical Formula Visualization</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>generate \
|
||||
--description "Convert a chemical formula into a 2D chemical structure diagram" \
|
||||
--test "C=C, CN=C=O, CCC(=O)O" \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/chemical_formula_example.png" alt="Chemical Formula Visualization" width="400" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>Hacker News Search</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>generate \
|
||||
--description "Given a search query, find articles on hacker news using the hacker news api and return a list of (title, author, website_link, first_image_on_the_website)" \
|
||||
--test "searching for GPT gives results" \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/hacker_news_example.png" alt="Hacker News Search" width="400" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>Animal Detector</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Given an image, return the image with bounding boxes of all animals (https://pjreddie.com/media/files/yolov3.weights, https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov3.cfg)" \
|
||||
--test "https://images.unsplash.com/photo-1444212477490-ca407925329e contains animals" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/animal_detector_example.png" alt="Animal Detector" width="400" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>Meme Generator</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--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 discovered GPTDeploy" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/meme_example.png" alt="Meme Generator" width="400" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>Audio to Mel Spectrogram</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Create mel spectrograms from audio file" \
|
||||
--test "https://cdn.pixabay.com/download/audio/2023/02/28/audio_550d815fa5.mp3" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/audio_to_mel_example.png" alt="Audio to Mel Spectrogram" width="400" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>Word Cloud Generator</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Generate a word cloud from a given text" \
|
||||
--test "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/word_cloud_example.png" alt="Word Cloud Generator" width="400" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>2D Rendering of 3D Model</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "create a 2d rendering of a whole 3d object and x,y,z object rotation using trimesh and pyrender.OffscreenRenderer with os.environ['PYOPENGL_PLATFORM'] = 'egl' and freeglut3-dev library" \
|
||||
--test "input: https://graphics.stanford.edu/courses/cs148-10-summer/as3/code/as3/teapot.obj output: assert the image is not completely white or black" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/obj_render_example.gif" alt="2D Rendering of 3D Model" width="400" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>Table Extraction</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Given a URL, extract all tables as csv" \
|
||||
--test "http://www.ins.tn/statistiques/90" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/table_extraction_example.png" alt="Table Extraction" width="400" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>Rhyme Generator</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Given a word, return a list of rhyming words using the datamuse api" \
|
||||
--test "hello" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/rhyme_generator_example.png" alt="Rhyme Generator" width="400" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>Text to Speech</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Convert text to speech" \
|
||||
--test "Hello, welcome to GPT Deploy!" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<a href=res/text_to_speech_example.wav><img src="res/text_to_speech_example.png" alt="Text to Speech" width="400" /></a>
|
||||
<audio controls>
|
||||
<source src="res/text_to_speech_example.wav" type="audio/mpeg">
|
||||
Your browser does not support the audio element.
|
||||
</audio>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>Heatmap Generator</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Create a heatmap from an image and a list of relative coordinates" \
|
||||
--test "https://images.unsplash.com/photo-1574786198875-49f5d09fe2d2, [[0.1, 0.2], [0.3, 0.4], [0.5, 0.6], [0.2, 0.1], [0.7, 0.2], [0.4, 0.2]]" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/heatmap_example.png" alt="Heatmap Generator" width="400" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>QR Code Generator</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Generate QR code from URL" \
|
||||
--test "https://www.example.com" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/qr_example.png" alt="QR Code Generator" width="400" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h3>Mandelbrot Set Visualizer</h3>
|
||||
<pre style="overflow-x: auto; max-width: 400px;"><code>gptdeploy generate \
|
||||
--description "Visualize the Mandelbrot set with custom parameters" \
|
||||
--test "center=-0+1i, zoom=1.0, size=800x800, iterations=1000" \
|
||||
--model gpt-4 \
|
||||
--path microservice</code></pre>
|
||||
<img src="res/mandelbrot_example.png" alt="Mandelbrot Set Visualizer" width="400" />
|
||||
</td>
|
||||
<td>
|
||||
<p>More to come...</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
[//]: # (## TO BE TESTED)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user