Spaces:
Running
Running
Change the order of the parameters in the transcribe function
Browse files
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,
|
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 |
|