From 51bdf4381a064e3d5542bdfe31b76cd7cd99588c Mon Sep 17 00:00:00 2001 From: "sangjune.park" Date: Mon, 18 Dec 2023 21:11:44 +0900 Subject: [PATCH] fix typo (#6818) Signed-off-by: sangjune.park --- .../setting-up-a-demo-for-maximum-performance.md | 2 +- .../setting-up-a-demo-for-maximum-performance.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/09_other-tutorials/setting-up-a-demo-for-maximum-performance.md b/guides/09_other-tutorials/setting-up-a-demo-for-maximum-performance.md index e7ecbb112e59b..0a11da603e94f 100644 --- a/guides/09_other-tutorials/setting-up-a-demo-for-maximum-performance.md +++ b/guides/09_other-tutorials/setting-up-a-demo-for-maximum-performance.md @@ -90,7 +90,7 @@ Here's an example of a function that does _not_ accept a batch of inputs -- it p import time def trim_words(word, length): - return w[:int(length)] + return word[:int(length)] ``` diff --git a/guides/cn/07_other-tutorials/setting-up-a-demo-for-maximum-performance.md b/guides/cn/07_other-tutorials/setting-up-a-demo-for-maximum-performance.md index 91dcbb946ddd4..3f0a1d1ae033e 100644 --- a/guides/cn/07_other-tutorials/setting-up-a-demo-for-maximum-performance.md +++ b/guides/cn/07_other-tutorials/setting-up-a-demo-for-maximum-performance.md @@ -66,7 +66,7 @@ _注_:还有第二个参数可控制 Gradio 能够生成的*总*线程数, import time def trim_words(word, length): - return w[:int(length)] + return word[:int(length)] ```