Spaces:
Runtime error
Runtime error
Commit
·
5b13b80
1
Parent(s):
868b522
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def main():
|
|
| 31 |
repo_files = list_repo_files(repo_id="balacoon/tts")
|
| 32 |
model_files = [x for x in repo_files if x.endswith("_cpu.addon")]
|
| 33 |
model_name_dropdown = gr.inputs.Dropdown(label="Model", choices=model_files)
|
| 34 |
-
|
| 35 |
|
| 36 |
file_input = gr.inputs.File(label="Select a PDF File", type="file")
|
| 37 |
text = gr.outputs.Textbox()
|
|
@@ -58,7 +58,7 @@ def main():
|
|
| 58 |
|
| 59 |
iface = gr.Interface(
|
| 60 |
fn=synthesize_audio,
|
| 61 |
-
inputs=[file_input, model_name_dropdown,
|
| 62 |
outputs=audio,
|
| 63 |
title="PDF TO SPEECH CONVERTER",
|
| 64 |
layout="rows",
|
|
|
|
| 31 |
repo_files = list_repo_files(repo_id="balacoon/tts")
|
| 32 |
model_files = [x for x in repo_files if x.endswith("_cpu.addon")]
|
| 33 |
model_name_dropdown = gr.inputs.Dropdown(label="Model", choices=model_files)
|
| 34 |
+
speaker_dropdown = gr.inputs.Dropdown(label="Speaker", choices=[])
|
| 35 |
|
| 36 |
file_input = gr.inputs.File(label="Select a PDF File", type="file")
|
| 37 |
text = gr.outputs.Textbox()
|
|
|
|
| 58 |
|
| 59 |
iface = gr.Interface(
|
| 60 |
fn=synthesize_audio,
|
| 61 |
+
inputs=[file_input, model_name_dropdown, speaker_dropdown],
|
| 62 |
outputs=audio,
|
| 63 |
title="PDF TO SPEECH CONVERTER",
|
| 64 |
layout="rows",
|