Skip to content

Commit

Permalink
Add cli entrypoint to get languages
Browse files Browse the repository at this point in the history
Update Docker config to default to use language API
  • Loading branch information
NeonDaniel committed Nov 29, 2023
1 parent 3ad5eb6 commit 7bab623
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 1 addition & 10 deletions docker_overlay/etc/neon/neon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ iris:
server_address: "0.0.0.0"
server_port: 7860
default_lang: en-us
languages:
- en-us
- fr-fr
- es-es
- de-de
- it-it
- uk-ua
- nl-nl
- pt-pt
- ca-es
enable_lang_api: True

location:
city:
Expand Down
8 changes: 8 additions & 0 deletions neon_iris/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ def start_gradio():
click.echo("Unable to connect to MQ server")


@neon_iris_cli.command(help="Query Neon Core for supported languages")
def get_languages():
from neon_iris.util import query_neon
_print_config()
resp = query_neon("neon.languages.get", {})
click.echo(pformat(resp))


@neon_iris_cli.command(help="Transcribe an audio file")
@click.option('--lang', '-l', default='en-us',
help="language of input audio")
Expand Down

0 comments on commit 7bab623

Please sign in to comment.