Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ css = """.toast-wrap { display: none !important } """
|
|
26 |
def transcribe(audio):
|
27 |
whisper_client = Client("https://sanchit-gandhi-whisper-large-v2.hf.space/")
|
28 |
with open("audio.wav", "wb") as f:
|
29 |
-
f.write(audio)
|
30 |
return whisper_client.predict(
|
31 |
"audio.wav", # str (filepath or URL to file) in 'inputs' Audio component
|
32 |
"transcribe", # str in 'Task' Radio component
|
|
|
26 |
def transcribe(audio):
|
27 |
whisper_client = Client("https://sanchit-gandhi-whisper-large-v2.hf.space/")
|
28 |
with open("audio.wav", "wb") as f:
|
29 |
+
f.write(audio[0])
|
30 |
return whisper_client.predict(
|
31 |
"audio.wav", # str (filepath or URL to file) in 'inputs' Audio component
|
32 |
"transcribe", # str in 'Task' Radio component
|