Spaces:
Runtime error
Runtime error
Crawford.Zhou
commited on
Commit
•
1a17a2c
1
Parent(s):
c6434b4
支持科比+孙笑川+丁真
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ def greet(name, intensity):
|
|
8 |
client = Client("https://xzjosh-dz-bert-vits2-2-3.hf.space/--replicas/2f0jm/")
|
9 |
result = client.predict(
|
10 |
name,
|
|
|
11 |
"丁真", # str (Option from: [('丁真', '丁真')]) in 'Speaker' Dropdown component
|
12 |
0.5, # int | float (numeric value between 0 and 1) in 'SDP Ratio' Slider component
|
13 |
0.5, # int | float (numeric value between 0.1 and 2) in 'Noise' Slider component
|
@@ -17,6 +18,7 @@ def greet(name, intensity):
|
|
17 |
"1.wav",
|
18 |
"Howdy!", # str in 'Text prompt' Textbox component
|
19 |
"Text prompt", # str in 'Prompt Mode' Radio component
|
|
|
20 |
0, # int | float (numeric value between 0 and 1) in 'Weight' Slider component
|
21 |
fn_index=0
|
22 |
)
|
@@ -34,26 +36,7 @@ def greet(name, intensity):
|
|
34 |
"auto",
|
35 |
"1.wav",
|
36 |
"Howdy!", # str in 'Text prompt' Textbox component
|
37 |
-
"Text prompt", # str in 'Prompt Mode' Radio component
|
38 |
-
"Howdy!",
|
39 |
-
fn_index=0
|
40 |
-
)
|
41 |
-
print(result)
|
42 |
-
return result[1]
|
43 |
-
if intensity == 2:
|
44 |
-
client = Client("https://xzjosh-kobe-bert-vits2-2-3.hf.space/--replicas/sk3k7/")
|
45 |
-
result = client.predict(
|
46 |
-
name, # str in '输入文本内容' Textbox component
|
47 |
-
"科比", # str (Option from: [('孙笑川', '孙笑川')]) in 'Speaker' Dropdown component
|
48 |
-
0.5, # int | float (numeric value between 0 and 1) in 'SDP Ratio' Slider component
|
49 |
-
0.5, # int | float (numeric value between 0.1 and 2) in 'Noise' Slider component
|
50 |
-
0.9, # int | float (numeric value between 0.1 and 2) in 'Noise_W' Slider component
|
51 |
-
1, # int | float (numeric value between 0.1 and 2) in 'Length' Slider component
|
52 |
-
"auto",
|
53 |
-
"1.wav",
|
54 |
-
"Howdy!", # str in 'Text prompt' Textbox component
|
55 |
-
"Text prompt", # str in 'Prompt Mode' Radio component,
|
56 |
-
"Howdy!",
|
57 |
fn_index=0
|
58 |
)
|
59 |
print(result)
|
|
|
8 |
client = Client("https://xzjosh-dz-bert-vits2-2-3.hf.space/--replicas/2f0jm/")
|
9 |
result = client.predict(
|
10 |
name,
|
11 |
+
# str in '输入文本内容' Textbox component
|
12 |
"丁真", # str (Option from: [('丁真', '丁真')]) in 'Speaker' Dropdown component
|
13 |
0.5, # int | float (numeric value between 0 and 1) in 'SDP Ratio' Slider component
|
14 |
0.5, # int | float (numeric value between 0.1 and 2) in 'Noise' Slider component
|
|
|
18 |
"1.wav",
|
19 |
"Howdy!", # str in 'Text prompt' Textbox component
|
20 |
"Text prompt", # str in 'Prompt Mode' Radio component
|
21 |
+
"Howdy!", # str in '辅助文本' Textbox component
|
22 |
0, # int | float (numeric value between 0 and 1) in 'Weight' Slider component
|
23 |
fn_index=0
|
24 |
)
|
|
|
36 |
"auto",
|
37 |
"1.wav",
|
38 |
"Howdy!", # str in 'Text prompt' Textbox component
|
39 |
+
"Text prompt", # str in 'Prompt Mode' Radio component
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
fn_index=0
|
41 |
)
|
42 |
print(result)
|