VenkateshRoshan commited on
Commit
9a3f61d
·
1 Parent(s): 00e87f4

Initial Commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ model_id = "openai/whisper-large-v3"
100
  client = InferenceClient(model_id)
101
  pipe = pipeline("automatic-speech-recognition", model=model_id) #, device=device)
102
 
103
- def transcribe(inputs, task, use_api):
104
  start = time.time()
105
  if inputs is None:
106
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
 
100
  client = InferenceClient(model_id)
101
  pipe = pipeline("automatic-speech-recognition", model=model_id) #, device=device)
102
 
103
+ def transcribe(inputs, use_api):
104
  start = time.time()
105
  if inputs is None:
106
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")