Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -233,14 +233,26 @@ body {
|
|
233 |
.gr-button:hover {
|
234 |
background-color: #45a049 !important;
|
235 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
"""
|
237 |
|
238 |
with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
239 |
gr.Markdown("# 🎙️ 自動生成 Podcast 節目及音檔。系統布署:江信宗。 🎙️", elem_classes="center-aligned")
|
240 |
|
241 |
-
input_text = gr.Textbox(label="請輸入 Podcast 話題(建議50~500字之間)", placeholder="輸入 Podcast
|
242 |
|
243 |
-
with gr.Row():
|
244 |
Language = gr.Dropdown(
|
245 |
choices=["繁體中文", "Auto Detect", "English", "日本語", "한국어"],
|
246 |
value="繁體中文",
|
@@ -289,7 +301,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
|
289 |
scale=2
|
290 |
)
|
291 |
|
292 |
-
with gr.Row():
|
293 |
generate_button = gr.Button("生成", scale=2, elem_classes="gen-button")
|
294 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="API authentication key for large language models", scale=1)
|
295 |
|
|
|
233 |
.gr-button:hover {
|
234 |
background-color: #45a049 !important;
|
235 |
}
|
236 |
+
.input-background {
|
237 |
+
background-color: #e6f7ff !important;
|
238 |
+
padding: 15px !important;
|
239 |
+
border-radius: 10px !important;
|
240 |
+
margin-bottom: 15px !important;
|
241 |
+
}
|
242 |
+
.row-background {
|
243 |
+
background-color: #fff0f5 !important;
|
244 |
+
padding: 15px !important;
|
245 |
+
border-radius: 10px !important;
|
246 |
+
margin-bottom: 15px !important;
|
247 |
+
}
|
248 |
"""
|
249 |
|
250 |
with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
251 |
gr.Markdown("# 🎙️ 自動生成 Podcast 節目及音檔。系統布署:江信宗。 🎙️", elem_classes="center-aligned")
|
252 |
|
253 |
+
input_text = gr.Textbox(label="請輸入 Podcast 話題(建議50~500字之間)", placeholder="輸入 Podcast 話題內容,越詳細劇本越佳......", elem_classes="input-background")
|
254 |
|
255 |
+
with gr.Row(elem_classes="row-background"):
|
256 |
Language = gr.Dropdown(
|
257 |
choices=["繁體中文", "Auto Detect", "English", "日本語", "한국어"],
|
258 |
value="繁體中文",
|
|
|
301 |
scale=2
|
302 |
)
|
303 |
|
304 |
+
with gr.Row(elem_classes="row-background"):
|
305 |
generate_button = gr.Button("生成", scale=2, elem_classes="gen-button")
|
306 |
api_key = gr.Textbox(label="API Key", type="password", placeholder="API authentication key for large language models", scale=1)
|
307 |
|