Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,9 @@ def write_to_file(input_file):
|
|
45 |
# return (' '.join([s.replace(s[0],s[0].capitalize(),1) for s in sentences]))
|
46 |
pipe = pipeline(model="Shubham09/whisper31filescheck") # change to "your-username/the-name-you-picked"
|
47 |
|
48 |
-
def asr_transcript():
|
49 |
-
|
|
|
50 |
return text
|
51 |
|
52 |
# speech = load_data(input_file)
|
|
|
45 |
# return (' '.join([s.replace(s[0],s[0].capitalize(),1) for s in sentences]))
|
46 |
pipe = pipeline(model="Shubham09/whisper31filescheck") # change to "your-username/the-name-you-picked"
|
47 |
|
48 |
+
def asr_transcript(audio):
|
49 |
+
audio = "my_Audio_file.flac"
|
50 |
+
text = pipe(audio)["text"]
|
51 |
return text
|
52 |
|
53 |
# speech = load_data(input_file)
|