Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -76,26 +76,20 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as iface:
|
|
76 |
|
77 |
input_text = gr.Textbox(label="請輸入您的文字")
|
78 |
Language = gr.Dropdown(choices=["繁體中文", "Auto Detect", "英文"], value="繁體中文", label="語言")
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
"Emma - English (United States)",
|
94 |
-
"Florian - German (Germany)",
|
95 |
-
"Seraphina - German (Germany)",
|
96 |
-
"Remy - French (France)",
|
97 |
-
"Vivienne - French (France)"
|
98 |
-
], value="Ava - English (United States)", label="來賓的語音")
|
99 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="API authentication key for large language models")
|
100 |
output_text = gr.Textbox(label="生成的結果")
|
101 |
|
|
|
76 |
|
77 |
input_text = gr.Textbox(label="請輸入您的文字")
|
78 |
Language = gr.Dropdown(choices=["繁體中文", "Auto Detect", "英文"], value="繁體中文", label="語言")
|
79 |
+
|
80 |
+
speaker_choices = [
|
81 |
+
"Andrew - English (United States)",
|
82 |
+
"Ava - English (United States)",
|
83 |
+
"Brian - English (United States)",
|
84 |
+
"Emma - English (United States)",
|
85 |
+
"Florian - German (Germany)",
|
86 |
+
"Seraphina - German (Germany)",
|
87 |
+
"Remy - French (France)",
|
88 |
+
"Vivienne - French (France)"
|
89 |
+
]
|
90 |
+
|
91 |
+
Speaker_1 = gr.Dropdown(choices=speaker_choices, value=speaker_choices[0], label="主持人的語音")
|
92 |
+
Speaker_2 = gr.Dropdown(choices=speaker_choices, value=speaker_choices[1], label="來賓的語音")
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="API authentication key for large language models")
|
94 |
output_text = gr.Textbox(label="生成的結果")
|
95 |
|