sanchit-gandhi HF staff commited on
Commit
5d7014c
1 Parent(s): 29e688f

remove source

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import time
7
  import os
8
 
9
  BATCH_SIZE = 16
10
- # TODO: remove token before release
11
  TOKEN = os.environ.get("HF_TOKEN", None)
12
 
13
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
@@ -126,7 +126,7 @@ if __name__ == "__main__":
126
  against the <a href="https://huggingface.co/openai/whisper-large-v2"> Whisper </a> model.
127
  """
128
  )
129
- audio = gr.components.Audio(source="upload", type="filepath", label="Audio file")
130
  button = gr.Button("Transcribe")
131
  plot = gr.components.Plot()
132
  with gr.Row():
 
7
  import os
8
 
9
  BATCH_SIZE = 16
10
+ # TODO: remove token before release and update ckpt path
11
  TOKEN = os.environ.get("HF_TOKEN", None)
12
 
13
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
 
126
  against the <a href="https://huggingface.co/openai/whisper-large-v2"> Whisper </a> model.
127
  """
128
  )
129
+ audio = gr.components.Audio(type="filepath", label="Audio input")
130
  button = gr.Button("Transcribe")
131
  plot = gr.components.Plot()
132
  with gr.Row():