Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -276,12 +276,18 @@ custom_css = """
|
|
| 276 |
border-radius: 10px !important;
|
| 277 |
margin: 0 !important;
|
| 278 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
.file-background {
|
| 280 |
background-color: #B7E0FF !important;
|
| 281 |
padding: 15px !important;
|
| 282 |
border-radius: 10px !important;
|
| 283 |
margin: 0 !important;
|
| 284 |
-
height:
|
| 285 |
}
|
| 286 |
.lng-background {
|
| 287 |
background-color: #FFF5CD !important;
|
|
@@ -289,18 +295,33 @@ custom_css = """
|
|
| 289 |
border-radius: 10px !important;
|
| 290 |
margin: 0 !important;
|
| 291 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
.sk1-background {
|
| 293 |
background-color: #FFF5CD !important;
|
| 294 |
padding: 10px !important;
|
| 295 |
border-radius: 10px !important;
|
| 296 |
margin: 0 !important;
|
| 297 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
.sk2-background {
|
| 299 |
background-color: #FFF5CD !important;
|
| 300 |
padding: 10px !important;
|
| 301 |
border-radius: 10px !important;
|
| 302 |
margin: 0 !important;
|
| 303 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
.clear-button {
|
| 305 |
color: black !important;
|
| 306 |
background-color: #FFCFB3 !important;
|
|
@@ -330,6 +351,12 @@ custom_css = """
|
|
| 330 |
border-radius: 10px !important;
|
| 331 |
margin: 0 !important;
|
| 332 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
"""
|
| 334 |
|
| 335 |
with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
|
@@ -341,10 +368,10 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
|
| 341 |
with gr.Row():
|
| 342 |
input_text = gr.Textbox(
|
| 343 |
label="請輸入 Podcast 話題(建議50至1000字)",
|
| 344 |
-
placeholder="
|
| 345 |
elem_classes="input-background",
|
| 346 |
max_lines=20,
|
| 347 |
-
scale=
|
| 348 |
)
|
| 349 |
fileName = gr.File(
|
| 350 |
file_types=[".pdf", ".txt"],
|
|
|
|
| 276 |
border-radius: 10px !important;
|
| 277 |
margin: 0 !important;
|
| 278 |
}
|
| 279 |
+
.input-background textarea {
|
| 280 |
+
font-size: 18px !important;
|
| 281 |
+
background-color: #ffffff;
|
| 282 |
+
border: 1px solid #f0f8ff;
|
| 283 |
+
border-radius: 8px;
|
| 284 |
+
}
|
| 285 |
.file-background {
|
| 286 |
background-color: #B7E0FF !important;
|
| 287 |
padding: 15px !important;
|
| 288 |
border-radius: 10px !important;
|
| 289 |
margin: 0 !important;
|
| 290 |
+
height: auto;
|
| 291 |
}
|
| 292 |
.lng-background {
|
| 293 |
background-color: #FFF5CD !important;
|
|
|
|
| 295 |
border-radius: 10px !important;
|
| 296 |
margin: 0 !important;
|
| 297 |
}
|
| 298 |
+
.lng-background textarea {
|
| 299 |
+
background-color: #ffffff;
|
| 300 |
+
border: 1px solid #f0f8ff;
|
| 301 |
+
border-radius: 8px;
|
| 302 |
+
}
|
| 303 |
.sk1-background {
|
| 304 |
background-color: #FFF5CD !important;
|
| 305 |
padding: 10px !important;
|
| 306 |
border-radius: 10px !important;
|
| 307 |
margin: 0 !important;
|
| 308 |
}
|
| 309 |
+
.sk1-background textarea {
|
| 310 |
+
background-color: #ffffff;
|
| 311 |
+
border: 1px solid #f0f8ff;
|
| 312 |
+
border-radius: 8px;
|
| 313 |
+
}
|
| 314 |
.sk2-background {
|
| 315 |
background-color: #FFF5CD !important;
|
| 316 |
padding: 10px !important;
|
| 317 |
border-radius: 10px !important;
|
| 318 |
margin: 0 !important;
|
| 319 |
}
|
| 320 |
+
.sk2-background textarea {
|
| 321 |
+
background-color: #ffffff;
|
| 322 |
+
border: 1px solid #f0f8ff;
|
| 323 |
+
border-radius: 8px;
|
| 324 |
+
}
|
| 325 |
.clear-button {
|
| 326 |
color: black !important;
|
| 327 |
background-color: #FFCFB3 !important;
|
|
|
|
| 351 |
border-radius: 10px !important;
|
| 352 |
margin: 0 !important;
|
| 353 |
}
|
| 354 |
+
.script-background textarea {
|
| 355 |
+
font-size: 18px !important;
|
| 356 |
+
background-color: #ffffff;
|
| 357 |
+
border: 1px solid #f0f8ff;
|
| 358 |
+
border-radius: 8px;
|
| 359 |
+
}
|
| 360 |
"""
|
| 361 |
|
| 362 |
with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
|
|
|
|
| 368 |
with gr.Row():
|
| 369 |
input_text = gr.Textbox(
|
| 370 |
label="請輸入 Podcast 話題(建議50至1000字)",
|
| 371 |
+
placeholder="受限 LLM Context Length,建議1000字以內......",
|
| 372 |
elem_classes="input-background",
|
| 373 |
max_lines=20,
|
| 374 |
+
scale=4
|
| 375 |
)
|
| 376 |
fileName = gr.File(
|
| 377 |
file_types=[".pdf", ".txt"],
|