diff --git a/README.md b/README.md index ade02ec..ad9e2d6 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,17 @@ jc delete ## Examples In this section you can get a feeling for the kind of microservices that can be generated with GPT Deploy. +### Extract and summarize news articles given a URL +```bash +gptdeploy generate \ +--description "Extract text from a news article URL using Newspaper3k library and generate a summary." \ +--test "input: 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/' output: assert a summarized version of the article exists" \ +--model gpt-4 \ +--path microservice +``` +News Article Example + + ### Chemical Formula Visualization ```bash gptdeploy generate \ @@ -122,10 +133,10 @@ gptdeploy generate \ ### Product Recommendation ```bash gptdeploy generate \ ---description "Generate personalized product recommendations based on user product browsing history and the product categories fashion, electronics and sport" --test "Test that a user how visited p1(electronics),p2(fashion),p3(fashion) is more likely to buy p4(fashion) than p5(sports)" \ +--description "Generate personalized product recommendations based on user product browsing history and the product categories fashion, electronics and sport" \ +--test "Test that a user how visited p1(electronics),p2(fashion),p3(fashion) is more likely to buy p4(fashion) than p5(sports)" \ --model gpt-4 \ ---path microservice \ ---verbose +--path microservice ``` Product Recommendation @@ -512,7 +523,6 @@ In the following, you can find a list of things that need to be done. next steps: - [ ] check if windows and linux support works -- [ ] support gpt3.5-turbo - [ ] add video to README.md - [ ] bug: it can happen that the code generation is hanging forever - in this case aboard and redo the generation - [ ] new user has free credits but should be told to verify account @@ -524,7 +534,6 @@ Nice to have: - [ ] don't show this message: 🔐 You are logged in to Jina AI as florian.hoenicke (username:auth0-unified-448f11965ce142b6). To log out, use jina auth logout. -- [ ] rest endpoint instead of grpc since it is more popular - [ ] put the playground into the custom gateway (without rebuilding the custom gateway) - [ ] hide prompts in normal mode and show them in verbose mode - [ ] tests diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index 47d8a48..90c69be 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -294,5 +294,3 @@ def process_error_message(error_message): if not response and last_line.startswith('error: '): return last_line return response - -push_executor('/Users/florianhonicke/jina/gptdeploy/microservice/NewsArticleSummaryExecutor7754860') \ No newline at end of file