Spaces:
Sleeping
Sleeping
Commit
·
c58f484
1
Parent(s):
0d92846
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|