From 9ed7bdfce157d58a643487e714ccf68b288abd9a Mon Sep 17 00:00:00 2001 From: mertyg Date: Sat, 20 Jul 2024 16:56:51 -0700 Subject: [PATCH] add the missing import in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f6dc365..d3dd69e 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,8 @@ Output: TextGrad can also optimize prompts in PyTorch style! Here's how to do it with TextGrad, using GPT-4o for feedback, and optimizing a prompt for gpt-3.5-turbo: ```python import textgrad as tg +from textgrad.tasks import load_task + llm_engine = tg.get_engine("gpt-3.5-turbo") tg.set_backward_engine("gpt-4o")