Spaces:
Running
on
Zero
Running
on
Zero
emirhanbilgic
commited on
Commit
•
00f7498
1
Parent(s):
88b4f72
Update app.py
Browse files
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 |
-
#
|
134 |
-
return [(sentence,
|
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:
|