From d63b6258301f0209281f890ff7983e67676376c4 Mon Sep 17 00:00:00 2001 From: "junjie.jiang" Date: Tue, 30 May 2023 14:48:49 +0800 Subject: [PATCH] Update Signed-off-by: junjie.jiang --- README.md | 2 +- __init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a1893f..fad8d98 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Prompt Template. from towhee import ops, pipe import requests -towhee_docs = requests.get('https://raw.githubusercontent.com/towhee-io/towhee/main/README.md').context +towhee_docs = requests.get('https://raw.githubusercontent.com/towhee-io/towhee/main/README.md').content temp = """{question} diff --git a/__init__.py b/__init__.py index 58cbf9e..38ad296 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,4 @@ from .template_prompt import TemplatePrompt -def question_answer(temp: str): +def template(temp: str): return TemplatePrompt(temp)