c, python : add option to query encode size

This commit is contained in:
Georgi Gerganov
2021-01-23 17:13:13 +02:00
parent 0c746c1b15
commit ba8e0cd2b1
8 changed files with 58 additions and 21 deletions

View File

@@ -3,9 +3,9 @@ import ggwave
testFailed = False
n, samples = ggwave.encode("hello python")
samples = ggwave.encode("hello python")
if not (samples and n > 1024):
if not (samples):
testFailed = True
if testFailed: