Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def transcribe(input_audio, audio_language, task, timestamp_type):
|
|
103 |
else:
|
104 |
timestamp_type = "word"
|
105 |
|
106 |
-
output = pipe(input_audio,
|
107 |
text = output['text']
|
108 |
|
109 |
timestamps = format_output_to_list(output['chunks'])
|
@@ -178,4 +178,4 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
178 |
|
179 |
|
180 |
if __name__ == "__main__":
|
181 |
-
demo.launch()
|
|
|
103 |
else:
|
104 |
timestamp_type = "word"
|
105 |
|
106 |
+
output = pipe(input_audio, return_timestamps=timestamp_type, generate_kwargs={"task": task})
|
107 |
text = output['text']
|
108 |
|
109 |
timestamps = format_output_to_list(output['chunks'])
|
|
|
178 |
|
179 |
|
180 |
if __name__ == "__main__":
|
181 |
+
demo.launch(cache_examples=False)
|