Illia56 commited on
Commit
893de0e
·
1 Parent(s): 5da4366

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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