Spaces:
Build error
Build error
Commit
·
80ad420
1
Parent(s):
2be3aca
Update app.py
Browse files
app.py
CHANGED
@@ -62,9 +62,11 @@ def stt_record(audio_record_buffer):
|
|
62 |
if scorer:
|
63 |
acoustic_model.enableExternalScorer(scorer_path)
|
64 |
result = acoustic_model.stt(y)
|
|
|
65 |
else:
|
66 |
acoustic_model.disableExternalScorer()
|
67 |
result = acoustic_model.stt(y)
|
|
|
68 |
return result
|
69 |
|
70 |
|
@@ -305,6 +307,7 @@ interface_text = gr.Interface(fn=greet,
|
|
305 |
|
306 |
interface_file= gr.Interface(fn=greet_textonly,
|
307 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
|
|
308 |
"text",
|
309 |
"state"],
|
310 |
outputs=["html","state",gr.outputs.Audio(type="filepath")],
|
|
|
62 |
if scorer:
|
63 |
acoustic_model.enableExternalScorer(scorer_path)
|
64 |
result = acoustic_model.stt(y)
|
65 |
+
|
66 |
else:
|
67 |
acoustic_model.disableExternalScorer()
|
68 |
result = acoustic_model.stt(y)
|
69 |
+
print("STT:",result)
|
70 |
return result
|
71 |
|
72 |
|
|
|
307 |
|
308 |
interface_file= gr.Interface(fn=greet_textonly,
|
309 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
310 |
+
gr.inputs.Audio(type="filepath") ,
|
311 |
"text",
|
312 |
"state"],
|
313 |
outputs=["html","state",gr.outputs.Audio(type="filepath")],
|