This commit is contained in:
2019-02-20 11:16:42 -05:00
parent d431d6aa0d
commit 666aba3d56
3 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ with open('README.md') as file:
setup(
name="tatt",
version="0.93",
version="0.941",
py_modules=['tatt'],
url='https://github.com/zevaverbach/tatt',
install_requires=[

View File

@@ -7,13 +7,13 @@ TAB = '\t'
def make_string_all_services(free_only=False):
all_services_string_formatter = (
"Here are all the available {}speech-to-text-services:\n\n"
"\nHere are all the available {}speech-to-text-services:\n\n"
)
format_fill = ""
if free_only:
all_services_string = all_services_string_formatter.format("free ")
else:
all_services_string = all_services_string_formatter.format("")
format_fill = "free "
all_services_string = all_services_string_formatter.format(format_fill)
for service_name, module in vendors.STT_SERVICES.items():
if free_only and module.cost_per_15_seconds > 0:
@@ -22,7 +22,7 @@ def make_string_all_services(free_only=False):
f'{TAB}{service_name}{TAB}{TAB}${module.cost_per_15_seconds} per 15 seconds'
)
return all_services_string
return all_services_string + '\n'
def get_service(service_name):

View File

@@ -1,5 +1,5 @@
from tatt.vendors import amazon
STT_VENDORS = {
STT_SERVICES = {
'amazon': amazon,
}