Skip to content

Commit

Permalink
style: Change demo title and theme
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Sep 19, 2024
1 parent 84dca17 commit d68ba0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ model_id: alexandrainst/roest-315m
sampling_rate: 16_000

# UI parameters
title: Røst ASR Demo
title: Røst Speech-to-Text Demo
description: >
This is a demo of the Danish speech recognition model
[Røst](https://huggingface.co/alexandrainst/roest-315m). Press "Record" to record your
own voice. When you're done you can press "Stop" to stop recording and "Submit" to
send the audio to the model for transcription. You can also upload an audio file by
pressing the
[Røst](https://huggingface.co/alexandrainst/roest-315m).
Press "Record" to record your own voice. When you're done you can press "Stop" to stop
recording and "Submit" to send the audio to the model for transcription. You can also
upload an audio file by pressing the
<svg xmlns="http://www.w3.org/2000/svg" width="14px" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" style="display: inline;">
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/run_asr_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def transcribe_audio(sampling_rate_and_audio: tuple[int, np.ndarray] | None) ->
outputs="textbox",
title=config.title,
description=config.description,
css="p { font-size: 1.0rem; }",
allow_flagging="never",
examples=[
"https://filedn.com/lRBwPhPxgV74tO0rDoe8SpH/audio-examples/bornholmsk.wav",
Expand All @@ -102,6 +103,7 @@ def transcribe_audio(sampling_rate_and_audio: tuple[int, np.ndarray] | None) ->
"https://filedn.com/lRBwPhPxgV74tO0rDoe8SpH/audio-examples/accent.wav",
],
cache_examples=False,
theme=gr.themes.Soft(primary_hue="orange"),
)
demo.launch()

Expand Down

0 comments on commit d68ba0b

Please sign in to comment.