Spaces:
Runtime error
Runtime error
Omar Sanseviero
commited on
Commit
·
2b65d86
1
Parent(s):
63ced49
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ print(voice_paths)
|
|
| 38 |
preset = "fastest"
|
| 39 |
|
| 40 |
def inference(text, voice):
|
| 41 |
-
cond_paths =
|
| 42 |
conds = []
|
| 43 |
for cond_path in cond_paths:
|
| 44 |
c = load_audio(cond_path, 22050)
|
|
@@ -50,7 +50,7 @@ text = "Joining two modalities results in a surprising increase in generalizatio
|
|
| 50 |
iface = gr.Interface(
|
| 51 |
inference,
|
| 52 |
inputs=[
|
| 53 |
-
gr.inputs.Textbox(type="
|
| 54 |
gr.inputs.Dropdown(voices),
|
| 55 |
],
|
| 56 |
outputs="audio",
|
|
|
|
| 38 |
preset = "fastest"
|
| 39 |
|
| 40 |
def inference(text, voice):
|
| 41 |
+
cond_paths = voice_paths[voice]
|
| 42 |
conds = []
|
| 43 |
for cond_path in cond_paths:
|
| 44 |
c = load_audio(cond_path, 22050)
|
|
|
|
| 50 |
iface = gr.Interface(
|
| 51 |
inference,
|
| 52 |
inputs=[
|
| 53 |
+
gr.inputs.Textbox(type="str", default=text, label="Text"),
|
| 54 |
gr.inputs.Dropdown(voices),
|
| 55 |
],
|
| 56 |
outputs="audio",
|