osanseviero commited on
Commit
d2e0f91
1 Parent(s): 9f08aa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -35,14 +35,15 @@ voices = get_voices()
35
  preset = "fastest"
36
 
37
  def inference(text, voice):
38
- cond_paths = voices[voice]
39
- conds = []
40
- for cond_path in cond_paths:
41
- c = load_audio(cond_path, 22050)
42
- conds.append(c)
43
- gen = tts.tts_with_preset(text, conds, preset)
44
- return gen
45
-
 
46
  text = "Joining two modalities results in a surprising increase in generalization! What would happen if we combined them all?"
47
  iface = gr.Interface(
48
  generate_tone,
 
35
  preset = "fastest"
36
 
37
  def inference(text, voice):
38
+ cond_paths = voices[voice]
39
+ conds = []
40
+ for cond_path in cond_paths:
41
+ c = load_audio(cond_path, 22050)
42
+ conds.append(c)
43
+ gen = tts.tts_with_preset(text, conds, preset)
44
+ return gen
45
+
46
+
47
  text = "Joining two modalities results in a surprising increase in generalization! What would happen if we combined them all?"
48
  iface = gr.Interface(
49
  generate_tone,