DurreSudoku commited on
Commit
c58f484
·
1 Parent(s): 0d92846

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -36,7 +36,11 @@ def open_image():
36
  def transcribe(audio):
37
  # Transcribe the audio and split the string into a list of words
38
  transcribed_audio = pipe(audio)["text"]
39
- transcribed_audio.replace(",", "").replace(".", "").replace("!", "")
 
 
 
 
40
 
41
  text_list = transcribed_audio.split(" ")
42
 
 
36
  def transcribe(audio):
37
  # Transcribe the audio and split the string into a list of words
38
  transcribed_audio = pipe(audio)["text"]
39
+
40
+ transcribed_audio = transcribed_audio.replace(",", "")
41
+ transcribed_audio = transcribed_audio.replace(".", "")
42
+ transcribed_audio = transcribed_audio.replace("!", "")
43
+ transcribed_audio = transcribed_audio.replace("?", "")
44
 
45
  text_list = transcribed_audio.split(" ")
46