From 000a0fc983a0ea797356fc0008012c8fe355d3ca Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 26 Jun 2024 09:54:59 +0200 Subject: [PATCH] tts remove length limit --- nostr_dvm/tasks/texttospeech.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nostr_dvm/tasks/texttospeech.py b/nostr_dvm/tasks/texttospeech.py index 1af6432..91205f2 100644 --- a/nostr_dvm/tasks/texttospeech.py +++ b/nostr_dvm/tasks/texttospeech.py @@ -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 diff --git a/setup.py b/setup.py index 7f113e3..801676c 100644 --- a/setup.py +++ b/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')