mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
fix typo (#6818)
Signed-off-by: sangjune.park <sangjune.park@navercorp.com>
This commit is contained in:
parent
67a2b7f12c
commit
51bdf4381a
@ -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)]
|
||||
|
||||
```
|
||||
|
||||
|
@ -66,7 +66,7 @@ _注_:还有第二个参数可控制 Gradio 能够生成的*总*线程数,
|
||||
import time
|
||||
|
||||
def trim_words(word, length):
|
||||
return w[:int(length)]
|
||||
return word[:int(length)]
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user