Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -176,8 +176,8 @@ Upload a `.docx` file and convert each paragraph to audio. You can also try a sh
|
|
176 |
sample_text = gr.Textbox(label="Sample Text (Max 500 chars)", max_lines=4, lines=3, max_length=500)
|
177 |
speaker_dropdown = gr.Dropdown(label="Select Speaker", choices=SPEAKER_CHOICES, value=SPEAKER_CHOICES[0])
|
178 |
|
179 |
-
sample_button = gr.Button("Generate Sample Audio")
|
180 |
-
sample_audio = gr.Audio(label="Sample Audio", type="filepath")
|
181 |
|
182 |
with gr.Row():
|
183 |
docx_input = gr.File(label="Upload .docx File", type="filepath")
|
@@ -185,7 +185,7 @@ Upload a `.docx` file and convert each paragraph to audio. You can also try a sh
|
|
185 |
|
186 |
final_output = gr.File(label="Download ZIP of WAVs")
|
187 |
|
188 |
-
sample_button.click(fn=generate_sample_audio, inputs=[sample_text, speaker_dropdown], outputs=sample_audio)
|
189 |
convert_button.click(fn=docx_to_zipped_wavs, inputs=[docx_input, speaker_dropdown], outputs=final_output)
|
190 |
|
191 |
if __name__ == "__main__":
|
|
|
176 |
sample_text = gr.Textbox(label="Sample Text (Max 500 chars)", max_lines=4, lines=3, max_length=500)
|
177 |
speaker_dropdown = gr.Dropdown(label="Select Speaker", choices=SPEAKER_CHOICES, value=SPEAKER_CHOICES[0])
|
178 |
|
179 |
+
# sample_button = gr.Button("Generate Sample Audio")
|
180 |
+
# sample_audio = gr.Audio(label="Sample Audio", type="filepath")
|
181 |
|
182 |
with gr.Row():
|
183 |
docx_input = gr.File(label="Upload .docx File", type="filepath")
|
|
|
185 |
|
186 |
final_output = gr.File(label="Download ZIP of WAVs")
|
187 |
|
188 |
+
# sample_button.click(fn=generate_sample_audio, inputs=[sample_text, speaker_dropdown], outputs=sample_audio)
|
189 |
convert_button.click(fn=docx_to_zipped_wavs, inputs=[docx_input, speaker_dropdown], outputs=final_output)
|
190 |
|
191 |
if __name__ == "__main__":
|