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