tts remove length limit

This commit is contained in:
Believethehype
2024-06-26 09:54:59 +02:00
parent 422e64eccb
commit 000a0fc983
2 changed files with 5 additions and 5 deletions

View File

@@ -44,12 +44,12 @@ class TextToSpeech(DVMTaskInterface):
input_type = tag.as_vec()[2]
if input_type != "event" and input_type != "job" and input_type != "text":
return False
if input_type == "text" and len(input_value) > 250:
return False
#if input_type == "text" and len(input_value) > 250:
# return False
if input_type == "event":
evt = await get_event_by_id(tag.as_vec()[1], client=client, config=dvm_config)
if len(evt.content()) > 250:
return False
#if len(evt.content()) > 250:
# return False
elif tag.as_vec()[0] == 'param':
param = tag.as_vec()[1]
if param == "language": # check for param type

View File

@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
VERSION = '0.6.23'
VERSION = '0.6.24'
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')