Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -223,13 +223,23 @@ body {
|
|
223 |
box-shadow: 0 0 0 2px rgba(245,0,87,0.2) !important;
|
224 |
}
|
225 |
.input-background {
|
226 |
-
background-color: #
|
227 |
padding: 15px !important;
|
228 |
border-radius: 10px !important;
|
229 |
}
|
230 |
-
.
|
231 |
-
background-color: #
|
232 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
border-radius: 10px !important;
|
234 |
}
|
235 |
"""
|
@@ -239,13 +249,14 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
|
239 |
|
240 |
input_text = gr.Textbox(label="請輸入 Podcast 話題(建議50~500字之間)", placeholder="輸入 Podcast 話題內容,越詳細劇本越佳......", elem_classes="input-background")
|
241 |
|
242 |
-
with gr.Row(
|
243 |
Language = gr.Dropdown(
|
244 |
choices=["繁體中文", "Auto Detect", "English", "日本語", "한국어"],
|
245 |
value="繁體中文",
|
246 |
label="語言",
|
247 |
interactive=True,
|
248 |
-
scale=1
|
|
|
249 |
)
|
250 |
|
251 |
speaker_choices = [
|
@@ -280,17 +291,19 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
|
280 |
value="YunJhe - 臺灣國語 (Male)",
|
281 |
label="主持人的語音",
|
282 |
interactive=True,
|
283 |
-
scale=2
|
|
|
284 |
)
|
285 |
Speaker_2 = gr.Dropdown(
|
286 |
choices=speaker_choices,
|
287 |
value="HsiaoChen - 臺灣國語 (Female)",
|
288 |
label="來賓的語音",
|
289 |
interactive=True,
|
290 |
-
scale=2
|
|
|
291 |
)
|
292 |
|
293 |
-
with gr.Row(
|
294 |
generate_button = gr.Button("生成", scale=2, elem_classes="gen-button")
|
295 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="API authentication key for large language models", scale=1)
|
296 |
|
|
|
223 |
box-shadow: 0 0 0 2px rgba(245,0,87,0.2) !important;
|
224 |
}
|
225 |
.input-background {
|
226 |
+
background-color: #B7E0FF !important;
|
227 |
padding: 15px !important;
|
228 |
border-radius: 10px !important;
|
229 |
}
|
230 |
+
.lng-background {
|
231 |
+
background-color: #FFF5CD !important;
|
232 |
+
padding: 5px !important;
|
233 |
+
border-radius: 10px !important;
|
234 |
+
}
|
235 |
+
.sk1-background {
|
236 |
+
background-color: #FFF5CD !important;
|
237 |
+
padding: 5px !important;
|
238 |
+
border-radius: 10px !important;
|
239 |
+
}
|
240 |
+
.sk2-background {
|
241 |
+
background-color: #FFF5CD !important;
|
242 |
+
padding: 5px !important;
|
243 |
border-radius: 10px !important;
|
244 |
}
|
245 |
"""
|
|
|
249 |
|
250 |
input_text = gr.Textbox(label="請輸入 Podcast 話題(建議50~500字之間)", placeholder="輸入 Podcast 話題內容,越詳細劇本越佳......", elem_classes="input-background")
|
251 |
|
252 |
+
with gr.Row():
|
253 |
Language = gr.Dropdown(
|
254 |
choices=["繁體中文", "Auto Detect", "English", "日本語", "한국어"],
|
255 |
value="繁體中文",
|
256 |
label="語言",
|
257 |
interactive=True,
|
258 |
+
scale=1,
|
259 |
+
elem_classes="lng-background"
|
260 |
)
|
261 |
|
262 |
speaker_choices = [
|
|
|
291 |
value="YunJhe - 臺灣國語 (Male)",
|
292 |
label="主持人的語音",
|
293 |
interactive=True,
|
294 |
+
scale=2,
|
295 |
+
elem_classes="sk1-background"
|
296 |
)
|
297 |
Speaker_2 = gr.Dropdown(
|
298 |
choices=speaker_choices,
|
299 |
value="HsiaoChen - 臺灣國語 (Female)",
|
300 |
label="來賓的語音",
|
301 |
interactive=True,
|
302 |
+
scale=2,
|
303 |
+
elem_classes="sk2-background"
|
304 |
)
|
305 |
|
306 |
+
with gr.Row():
|
307 |
generate_button = gr.Button("生成", scale=2, elem_classes="gen-button")
|
308 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="API authentication key for large language models", scale=1)
|
309 |
|