Shrirang20 commited on
Commit
8aef4cf
1 Parent(s): 0cae3f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -365,10 +365,10 @@ def process_user_query(user_query, retrieved_doc):
365
  return processed_doc
366
 
367
 
368
- import traceback
369
 
370
  def process_gradio_input(audio, user_lang):
371
- try:
372
  # Use IndicASR to transcribe the input audio
373
  print(f"Transcribing...")
374
  query_transcription = transcribe(audio, lang=user_lang)
@@ -413,10 +413,6 @@ def process_gradio_input(audio, user_lang):
413
 
414
  return en_to_indic_doc, audio_outfile_path
415
 
416
- except Exception as e:
417
- error_message = f"An error occurred: {str(e)}\n\nTraceback:\n{traceback.format_exc()}"
418
- print(error_message)
419
- return error_message, None
420
 
421
  def launch_gradio_app(show_log=False):
422
 
 
365
  return processed_doc
366
 
367
 
368
+
369
 
370
  def process_gradio_input(audio, user_lang):
371
+
372
  # Use IndicASR to transcribe the input audio
373
  print(f"Transcribing...")
374
  query_transcription = transcribe(audio, lang=user_lang)
 
413
 
414
  return en_to_indic_doc, audio_outfile_path
415
 
 
 
 
 
416
 
417
  def launch_gradio_app(show_log=False):
418