Spaces:
elioonpc
/
Runtime error

Vaibhav Srivastav commited on
Commit
939c1fe
1 Parent(s): d636635
Files changed (1) hide show
  1. app.py +15 -7
app.py CHANGED
@@ -14,8 +14,11 @@ def predict(prompt, language, audio_file_pth, agree):
14
  language=language,
15
  )
16
 
17
- return gr.make_waveform(
18
- audio="output.wav",
 
 
 
19
  )
20
  else:
21
  gr.Warning("Please accept the Terms & Condition!")
@@ -49,19 +52,19 @@ examples = [
49
  "Once when I was six years old I saw a magnificent picture.",
50
  "en",
51
  "examples/female.wav",
52
- True
53
  ],
54
  [
55
  "Lorsque j'avais six ans j'ai vu, une fois, une magnifique image.",
56
  "fr",
57
  "examples/male.wav",
58
- True
59
  ],
60
  [
61
  "Un tempo lontano, quando avevo sei anni, vidi un magnifico disegno.",
62
  "it",
63
  "examples/female.wav",
64
- True
65
  ],
66
  ]
67
 
@@ -98,12 +101,17 @@ gr.Interface(
98
  label="Reference Audio",
99
  info="Click on the ✎ button to upload your own target speaker audio",
100
  type="filepath",
101
- value="examples/male.wav",
 
 
 
 
 
102
  ),
103
- gr.Checkbox(label="Agree", value=True, info="I agree to the terms of the Coqui Public Model License at https://coqui.ai/cpml")
104
  ],
105
  outputs=[
106
  gr.Video(label="Synthesised Waveform"),
 
107
  ],
108
  title=title,
109
  description=description,
 
14
  language=language,
15
  )
16
 
17
+ return (
18
+ gr.make_waveform(
19
+ audio="output.wav",
20
+ ),
21
+ "output.wav",
22
  )
23
  else:
24
  gr.Warning("Please accept the Terms & Condition!")
 
52
  "Once when I was six years old I saw a magnificent picture.",
53
  "en",
54
  "examples/female.wav",
55
+ True,
56
  ],
57
  [
58
  "Lorsque j'avais six ans j'ai vu, une fois, une magnifique image.",
59
  "fr",
60
  "examples/male.wav",
61
+ True,
62
  ],
63
  [
64
  "Un tempo lontano, quando avevo sei anni, vidi un magnifico disegno.",
65
  "it",
66
  "examples/female.wav",
67
+ True,
68
  ],
69
  ]
70
 
 
101
  label="Reference Audio",
102
  info="Click on the ✎ button to upload your own target speaker audio",
103
  type="filepath",
104
+ value="examples/female.wav",
105
+ ),
106
+ gr.Checkbox(
107
+ label="Agree",
108
+ value=True,
109
+ info="I agree to the terms of the Coqui Public Model License at https://coqui.ai/cpml",
110
  ),
 
111
  ],
112
  outputs=[
113
  gr.Video(label="Synthesised Waveform"),
114
+ gr.Aideo(label="Synthesised Audio"),
115
  ],
116
  title=title,
117
  description=description,