From 920fe19608ba06ed8c2b4c9a23944af35cf24e56 Mon Sep 17 00:00:00 2001 From: Raju Komati Date: Fri, 28 Apr 2023 00:40:43 +0530 Subject: added main module for accessing all services --- you/README.md | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 you/README.md (limited to 'you/README.md') diff --git a/you/README.md b/you/README.md deleted file mode 100644 index dbce37a5..00000000 --- a/you/README.md +++ /dev/null @@ -1,36 +0,0 @@ -### Example: `you` (use like openai pypi package) - -```python -import you - -# simple request with links and details -response = you.Completion.create( - prompt="hello world", - detailed=True, - include_links=True, ) - -print(response) - -# { -# "response": "...", -# "links": [...], -# "extra": {...}, -# "slots": {...} -# } -# } - -# chatbot - -chat = [] - -while True: - prompt = input("You: ") - - response = you.Completion.create( - prompt=prompt, - chat=chat) - - print("Bot:", response["response"]) - - chat.append({"question": prompt, "answer": response["response"]}) -``` \ No newline at end of file -- cgit v1.2.3