Spaces:
Sleeping
Sleeping
Deepak Sahu commited on
Commit ·
28618b2
1
Parent(s): 5d6c840
cosmetic updates
Browse files
app.py
CHANGED
|
@@ -153,9 +153,14 @@ def step_synth_audio(state: AppState):
|
|
| 153 |
|
| 154 |
with gr.Blocks(css=css_ui) as demo:
|
| 155 |
|
| 156 |
-
|
| 157 |
-
gr.Markdown("<
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
with gr.Row():
|
| 161 |
with gr.Column(4):
|
|
|
|
| 153 |
|
| 154 |
with gr.Blocks(css=css_ui) as demo:
|
| 155 |
|
| 156 |
+
# Title (centered)
|
| 157 |
+
gr.Markdown("<center>💬 **Talk To Julia about Me (Deepak)**</center>")
|
| 158 |
+
|
| 159 |
+
# Subtitle / description (centered)
|
| 160 |
+
gr.Markdown("<center>Powered by NVIDIA RIVA + NVIDIA NIM ⚡ \n*Start by asking:* _“Can you hear me?”_</center>")
|
| 161 |
+
|
| 162 |
+
# LinkedIn link (centered)
|
| 163 |
+
gr.Markdown("<center>Reach me out on [LinkedIn](https://www.linkedin.com/in/deepak-sahu-7a6894159/)</center>")
|
| 164 |
|
| 165 |
with gr.Row():
|
| 166 |
with gr.Column(4):
|
test1.py
CHANGED
|
@@ -27,6 +27,14 @@ asr_service = riva.client.ASRService(auth)
|
|
| 27 |
# enable_automatic_punctuation=True,
|
| 28 |
# verbatim_transcripts=False,
|
| 29 |
# )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
offline_config = riva.client.RecognitionConfig(
|
| 31 |
language_code="en-US",
|
| 32 |
# model=args.model_name,
|
|
@@ -34,7 +42,7 @@ offline_config = riva.client.RecognitionConfig(
|
|
| 34 |
# profanity_filter=args.profanity_filter,
|
| 35 |
enable_automatic_punctuation=True,
|
| 36 |
verbatim_transcripts=False,
|
| 37 |
-
speech_contexts=[{"phrases":
|
| 38 |
# enable_word_time_offsets=args.word_time_offsets or args.speaker_diarization,
|
| 39 |
)
|
| 40 |
|
|
|
|
| 27 |
# enable_automatic_punctuation=True,
|
| 28 |
# verbatim_transcripts=False,
|
| 29 |
# )
|
| 30 |
+
|
| 31 |
+
name_variants = [
|
| 32 |
+
"deepak", # standard spelling
|
| 33 |
+
"dee-pak", # phonetic-like spelling
|
| 34 |
+
"deepuck", # alternative spelling to match pronunciation
|
| 35 |
+
"D IY P AH K", # ARPAbet phonetic
|
| 36 |
+
]
|
| 37 |
+
|
| 38 |
offline_config = riva.client.RecognitionConfig(
|
| 39 |
language_code="en-US",
|
| 40 |
# model=args.model_name,
|
|
|
|
| 42 |
# profanity_filter=args.profanity_filter,
|
| 43 |
enable_automatic_punctuation=True,
|
| 44 |
verbatim_transcripts=False,
|
| 45 |
+
speech_contexts=[{"phrases": name_variants, "boost": 20.0}]
|
| 46 |
# enable_word_time_offsets=args.word_time_offsets or args.speaker_diarization,
|
| 47 |
)
|
| 48 |
|