Kr08 commited on
Commit
d41ad56
·
verified ·
1 Parent(s): 06d1cd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("/content/test_case_1.wav", translate=True)
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()