docs: path not required

This commit is contained in:
Florian Hönicke
2023-05-03 16:25:04 +02:00
parent 6204532a0b
commit da133bf483
2 changed files with 17 additions and 34 deletions

View File

@@ -103,9 +103,7 @@ In this section you can get a feeling for the kind of microservices that can be
```bash
gptdeploy generate \
--description "The user writes something and gets a related deep compliment." \
--test "" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/compliment_example.png" alt="Compliment Generator" width="400" />
@@ -114,8 +112,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Extract text from a news article URL using Newspaper3k library and generate a summary using gpt. Example input: http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/news_article_example.png" alt="News Article Example" width="400" />
@@ -123,8 +120,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Convert a chemical formula into a 2D chemical structure diagram. Example inputs: C=C, CN=C=O, CCC(=O)O" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/chemical_formula_example.png" alt="Chemical Formula Visualization" width="400" />
@@ -132,8 +128,7 @@ gptdeploy generate \
```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 - example input: https://graphics.stanford.edu/courses/cs148-10-summer/as3/code/as3/teapot.obj" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/obj_render_example.gif" alt="2D Rendering of 3D Model" width="400" />
@@ -141,8 +136,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Generate personalized product recommendations based on user product browsing history and the product categories fashion, electronics and sport. Example: Input: browsing history: prod1(electronics),prod2(fashion),prod3(fashion), output: p4(fashion)" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/recommendation_example.png" alt="Product Recommendation" width="400" />
@@ -150,8 +144,7 @@ gptdeploy generate \
```bash
gptdeploy 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)" \
--model gpt-4 \
--path microservice
--model gpt-4
````
<img src="res/hacker_news_example.png" alt="Hacker News Search" width="400" />
@@ -160,8 +153,7 @@ gptdeploy generate \
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), Example input: https://images.unsplash.com/photo-1444212477490-ca407925329e" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/animal_detector_example.png" alt="Animal Detector" width="400" />
@@ -169,8 +161,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Generate a meme from an image and a caption. Example input: 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
--model gpt-4
```
<img src="res/meme_example.png" alt="Meme Generator" width="400" />
@@ -178,8 +169,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Given a word, return a list of rhyming words using the datamuse api" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/rhyme_generator_example.png" alt="Rhyme Generator" width="400" />
@@ -187,8 +177,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Generate a word cloud from a given text" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/word_cloud_example.png" alt="Word Cloud Generator" width="400" />
@@ -196,8 +185,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Given a 3d object, return vertex count and face count. Example: https://raw.githubusercontent.com/polygonjs/polygonjs-assets/master/models/wolf.obj" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/obj_info_example.png" alt="3D Model Info" width="400" />
@@ -205,8 +193,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Given a URL, extract all tables as csv. Example: http://www.ins.tn/statistiques/90" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/table_extraction_example.png" alt="Table Extraction" width="400" />
@@ -214,8 +201,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Create mel spectrogram from audio file. Example: https://cdn.pixabay.com/download/audio/2023/02/28/audio_550d815fa5.mp3" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/audio_to_mel_example.png" alt="Audio to Mel Spectrogram" width="400" />
@@ -223,8 +209,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Convert text to speech" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<a href=res/text_to_speech_example.wav><img src="res/text_to_speech_example.png" alt="Text to Speech" width="400" /></a>
@@ -237,8 +222,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Create a heatmap from an image and a list of relative coordinates. Example input: 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
--model gpt-4
```
<img src="res/heatmap_example.png" alt="Heatmap Generator" width="400" />
@@ -255,8 +239,7 @@ gptdeploy generate \
```bash
gptdeploy generate \
--description "Visualize the Mandelbrot set with custom parameters. Example input: center=-0+1i, zoom=1.0, size=800x800, iterations=1000" \
--model gpt-4 \
--path microservice
--model gpt-4
```
<img src="res/mandelbrot_example.png" alt="Mandelbrot Set Visualizer" width="400" />

View File

@@ -30,7 +30,7 @@ https://github.com/jina-ai/gptdeploy/issues/new
return wrapper
def path_param(func):
@click.option('--path', required=True, help='Path to the generated microservice.')
@click.option('--path', default='microservice', help='Path to the generated microservice.')
@functools.wraps(func)
def wrapper(*args, **kwargs):
path = os.path.expanduser(kwargs['path'])