Skip to content

Commit

Permalink
tts remove length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
believethehype committed Jun 26, 2024
1 parent 422e64e commit 000a0fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nostr_dvm/tasks/texttospeech.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ async def is_input_supported(self, tags, client=None, dvm_config=None):
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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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')

Expand Down

0 comments on commit 000a0fc

Please sign in to comment.