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)