emirhanbilgic commited on
Commit
00f7498
1 Parent(s): 88b4f72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,8 +130,8 @@ def process_pdf(pdf_file, translate_checkbox, source_lang, target_lang, descript
130
 
131
  print("Processing complete.")
132
 
133
- # Format output as a list of tuples with the sentence and the corresponding audio component
134
- return [(sentence, gr.Audio.update(value=audio_file, label=sentence)) for sentence, audio_file in outputs], combined_output_file
135
 
136
  # Gradio interface
137
  with gr.Blocks() as demo:
 
130
 
131
  print("Processing complete.")
132
 
133
+ # Return the sentences with their corresponding audio files
134
+ return [(sentence, audio_file) for sentence, audio_file in outputs], combined_output_file
135
 
136
  # Gradio interface
137
  with gr.Blocks() as demo: