Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,7 @@ def guessanAge(model, image):
|
|
22 |
return description
|
23 |
|
24 |
def text2speech(model, text, voice):
|
|
|
25 |
if len(text) > 0:
|
26 |
synthesiser = pipeline("text-to-speech", model=model)
|
27 |
|
@@ -49,7 +50,7 @@ tab2 = gr.Interface(
|
|
49 |
)
|
50 |
|
51 |
radio3 = gr.Radio(["microsoft/speecht5_tts"], label="Select an tts", info="Age Classifier")
|
52 |
-
radio3_1 = gr.Radio([("Scottish male", 0), ("US male", 1138), ("US female", 2271), ("Canadian male",3403), ("Indian male", 4535), ("US male", 5667), (
|
53 |
tab3 = gr.Interface(
|
54 |
fn=text2speech,
|
55 |
inputs=[radio3, "text", radio3_1],
|
|
|
22 |
return description
|
23 |
|
24 |
def text2speech(model, text, voice):
|
25 |
+
print(voice)
|
26 |
if len(text) > 0:
|
27 |
synthesiser = pipeline("text-to-speech", model=model)
|
28 |
|
|
|
50 |
)
|
51 |
|
52 |
radio3 = gr.Radio(["microsoft/speecht5_tts"], label="Select an tts", info="Age Classifier")
|
53 |
+
radio3_1 = gr.Radio([("Scottish male", 0), ("US male", 1138), ("US female", 2271), ("Canadian male",3403), ("Indian male", 4535), ("US male", 5667), ("US female", 6799)])
|
54 |
tab3 = gr.Interface(
|
55 |
fn=text2speech,
|
56 |
inputs=[radio3, "text", radio3_1],
|