mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2026-02-03 21:34:33 +01:00
tts remove length limit
This commit is contained in:
@@ -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
|
||||
|
||||
2
setup.py
2
setup.py
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user