txya900619 commited on
Commit
79a3510
1 Parent(s): ccb8fb5

feat: capitalize output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def automatic_speech_recognition(model_id: str, dialect_id: str, audio_data: str
52
  if len(result["text"]) > 0:
53
  filtered_lines.append(result["text"])
54
 
55
- return ", ".join(filtered_lines) + "."
56
 
57
 
58
  def when_model_selected(model_id: str):
 
52
  if len(result["text"]) > 0:
53
  filtered_lines.append(result["text"])
54
 
55
+ return (", ".join(filtered_lines) + ".").capitalize()
56
 
57
 
58
  def when_model_selected(model_id: str):