Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def load_summarization_model():
|
|
51 |
def process_audio(audio_file, translate=False):
|
52 |
"""Process audio file"""
|
53 |
transcriber = ChunkedTranscriber(chunk_size=5, overlap=1)
|
54 |
-
results = transcriber.transcribe_audio(
|
55 |
return json.dumps(results, indent=4 )
|
56 |
# try:
|
57 |
# processor = AudioProcessor()
|
|
|
51 |
def process_audio(audio_file, translate=False):
|
52 |
"""Process audio file"""
|
53 |
transcriber = ChunkedTranscriber(chunk_size=5, overlap=1)
|
54 |
+
results = transcriber.transcribe_audio(audio_file, translate=True)
|
55 |
return json.dumps(results, indent=4 )
|
56 |
# try:
|
57 |
# processor = AudioProcessor()
|