Sangmin commited on
Commit
d803ee9
·
1 Parent(s): 683b0c8

Change the order of the parameters in the transcribe function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def chunks_to_srt(chunks):
31
  srt_format += f"{i}\n{start_time_hms} --> {end_time_hms}\n{chunk['text']}\n\n"
32
  return srt_format
33
 
34
- def transcribe(inputs, task, language, return_timestamps):
35
  if inputs is None:
36
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
37
 
 
31
  srt_format += f"{i}\n{start_time_hms} --> {end_time_hms}\n{chunk['text']}\n\n"
32
  return srt_format
33
 
34
+ def transcribe(inputs, task, return_timestamps, language):
35
  if inputs is None:
36
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
37