Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -342,13 +342,13 @@ body {
|
|
| 342 |
color: white;
|
| 343 |
border-radius: 8px;
|
| 344 |
padding: 8px 12px;
|
| 345 |
-
font-size: 2em;
|
| 346 |
cursor: pointer;
|
| 347 |
display: flex;
|
| 348 |
align-items: center;
|
| 349 |
justify-content: center;
|
| 350 |
-
height: 70px;
|
| 351 |
-
width: 70px;
|
| 352 |
transition: all 0.3s ease;
|
| 353 |
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
| 354 |
}
|
|
@@ -363,6 +363,11 @@ body {
|
|
| 363 |
height: 35px;
|
| 364 |
}
|
| 365 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
/* ๋ฉ์์ง ์คํ์ผ */
|
| 367 |
.message {
|
| 368 |
background: var(--card-background);
|
|
@@ -384,14 +389,13 @@ body {
|
|
| 384 |
.settings-panel {
|
| 385 |
background: var(--card-background);
|
| 386 |
border-radius: 15px;
|
| 387 |
-
padding:
|
| 388 |
margin-top: 20px;
|
| 389 |
box-shadow:
|
| 390 |
0 5px 15px var(--shadow-color),
|
| 391 |
0 3px 3px var(--shadow-color);
|
| 392 |
transform: translateZ(0);
|
| 393 |
transition: all 0.3s ease;
|
| 394 |
-
min-height: 200px; /* ์ต์ ๋์ด ์ค์ */
|
| 395 |
}
|
| 396 |
|
| 397 |
.settings-panel:hover {
|
|
@@ -400,23 +404,23 @@ body {
|
|
| 400 |
|
| 401 |
/* ์ฌ๋ผ์ด๋ ์คํ์ผ */
|
| 402 |
.slider-container {
|
| 403 |
-
margin:
|
| 404 |
}
|
| 405 |
|
| 406 |
.slider {
|
| 407 |
-webkit-appearance: none;
|
| 408 |
width: 100%;
|
| 409 |
-
height: 8px;
|
| 410 |
border-radius: 5px;
|
| 411 |
background: #ddd;
|
| 412 |
outline: none;
|
| 413 |
-
margin:
|
| 414 |
}
|
| 415 |
|
| 416 |
.slider::-webkit-slider-thumb {
|
| 417 |
-webkit-appearance: none;
|
| 418 |
appearance: none;
|
| 419 |
-
width: 20px;
|
| 420 |
height: 20px;
|
| 421 |
border-radius: 50%;
|
| 422 |
background: var(--primary-color);
|
|
@@ -449,16 +453,23 @@ body {
|
|
| 449 |
}
|
| 450 |
|
| 451 |
.send-button {
|
| 452 |
-
height: 70px !important;
|
| 453 |
min-width: 70px !important;
|
| 454 |
font-size: 1.1em !important;
|
| 455 |
}
|
| 456 |
|
| 457 |
/* ๊ณ ๊ธ ์ค์ ๋ ์ด๋ธ ์คํ์ผ */
|
| 458 |
.settings-label {
|
| 459 |
-
font-size: 1.
|
| 460 |
font-weight: 500;
|
| 461 |
-
margin:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 462 |
color: var(--text-color);
|
| 463 |
}
|
| 464 |
"""
|
|
@@ -476,12 +487,12 @@ with gr.Blocks(css=CSS) as demo:
|
|
| 476 |
with gr.Row(elem_classes="input-container"):
|
| 477 |
with gr.Column(scale=1, min_width=70):
|
| 478 |
file_upload = gr.File(
|
| 479 |
-
label="๐",
|
| 480 |
type="filepath",
|
| 481 |
elem_classes="file-upload-icon",
|
| 482 |
scale=1,
|
| 483 |
container=True,
|
| 484 |
interactive=True,
|
|
|
|
| 485 |
)
|
| 486 |
|
| 487 |
with gr.Column(scale=4):
|
|
@@ -503,6 +514,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
| 503 |
with gr.Accordion("๐ฎ ๊ณ ๊ธ ์ค์ ", open=False, elem_classes="settings-panel"):
|
| 504 |
with gr.Row():
|
| 505 |
with gr.Column(scale=1):
|
|
|
|
| 506 |
temperature = gr.Slider(
|
| 507 |
minimum=0, maximum=1, step=0.1, value=0.8,
|
| 508 |
label="์ฐฝ์์ฑ ์์ค ๐จ",
|
|
@@ -516,6 +528,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
| 516 |
container=True
|
| 517 |
)
|
| 518 |
with gr.Column(scale=1):
|
|
|
|
| 519 |
top_p = gr.Slider(
|
| 520 |
minimum=0.0, maximum=1.0, step=0.1, value=0.8,
|
| 521 |
label="๋ค์์ฑ ์กฐ์ ๐ฏ",
|
|
|
|
| 342 |
color: white;
|
| 343 |
border-radius: 8px;
|
| 344 |
padding: 8px 12px;
|
| 345 |
+
font-size: 2em;
|
| 346 |
cursor: pointer;
|
| 347 |
display: flex;
|
| 348 |
align-items: center;
|
| 349 |
justify-content: center;
|
| 350 |
+
height: 70px;
|
| 351 |
+
width: 70px;
|
| 352 |
transition: all 0.3s ease;
|
| 353 |
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
| 354 |
}
|
|
|
|
| 363 |
height: 35px;
|
| 364 |
}
|
| 365 |
|
| 366 |
+
/* ํ์ผ ์
๋ก๋ ๋ผ๋ฒจ ์จ๊ธฐ๊ธฐ */
|
| 367 |
+
.file-upload-icon label {
|
| 368 |
+
display: none !important;
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
/* ๋ฉ์์ง ์คํ์ผ */
|
| 372 |
.message {
|
| 373 |
background: var(--card-background);
|
|
|
|
| 389 |
.settings-panel {
|
| 390 |
background: var(--card-background);
|
| 391 |
border-radius: 15px;
|
| 392 |
+
padding: 30px;
|
| 393 |
margin-top: 20px;
|
| 394 |
box-shadow:
|
| 395 |
0 5px 15px var(--shadow-color),
|
| 396 |
0 3px 3px var(--shadow-color);
|
| 397 |
transform: translateZ(0);
|
| 398 |
transition: all 0.3s ease;
|
|
|
|
| 399 |
}
|
| 400 |
|
| 401 |
.settings-panel:hover {
|
|
|
|
| 404 |
|
| 405 |
/* ์ฌ๋ผ์ด๋ ์คํ์ผ */
|
| 406 |
.slider-container {
|
| 407 |
+
margin: 25px 0;
|
| 408 |
}
|
| 409 |
|
| 410 |
.slider {
|
| 411 |
-webkit-appearance: none;
|
| 412 |
width: 100%;
|
| 413 |
+
height: 8px;
|
| 414 |
border-radius: 5px;
|
| 415 |
background: #ddd;
|
| 416 |
outline: none;
|
| 417 |
+
margin: 25px 0;
|
| 418 |
}
|
| 419 |
|
| 420 |
.slider::-webkit-slider-thumb {
|
| 421 |
-webkit-appearance: none;
|
| 422 |
appearance: none;
|
| 423 |
+
width: 20px;
|
| 424 |
height: 20px;
|
| 425 |
border-radius: 50%;
|
| 426 |
background: var(--primary-color);
|
|
|
|
| 453 |
}
|
| 454 |
|
| 455 |
.send-button {
|
| 456 |
+
height: 70px !important;
|
| 457 |
min-width: 70px !important;
|
| 458 |
font-size: 1.1em !important;
|
| 459 |
}
|
| 460 |
|
| 461 |
/* ๊ณ ๊ธ ์ค์ ๋ ์ด๋ธ ์คํ์ผ */
|
| 462 |
.settings-label {
|
| 463 |
+
font-size: 1.2em;
|
| 464 |
font-weight: 500;
|
| 465 |
+
margin: 20px 0;
|
| 466 |
+
color: var(--text-color);
|
| 467 |
+
}
|
| 468 |
+
|
| 469 |
+
/* ์ฌ๋ผ์ด๋ ๋ ์ด๋ธ ์คํ์ผ */
|
| 470 |
+
.slider-label {
|
| 471 |
+
font-size: 1.1em;
|
| 472 |
+
margin: 15px 0;
|
| 473 |
color: var(--text-color);
|
| 474 |
}
|
| 475 |
"""
|
|
|
|
| 487 |
with gr.Row(elem_classes="input-container"):
|
| 488 |
with gr.Column(scale=1, min_width=70):
|
| 489 |
file_upload = gr.File(
|
|
|
|
| 490 |
type="filepath",
|
| 491 |
elem_classes="file-upload-icon",
|
| 492 |
scale=1,
|
| 493 |
container=True,
|
| 494 |
interactive=True,
|
| 495 |
+
show_label=False # ๋ผ๋ฒจ ์จ๊ธฐ๊ธฐ
|
| 496 |
)
|
| 497 |
|
| 498 |
with gr.Column(scale=4):
|
|
|
|
| 514 |
with gr.Accordion("๐ฎ ๊ณ ๊ธ ์ค์ ", open=False, elem_classes="settings-panel"):
|
| 515 |
with gr.Row():
|
| 516 |
with gr.Column(scale=1):
|
| 517 |
+
gr.Markdown("### ์์ฑ ๋งค๊ฐ๋ณ์", elem_classes="settings-label")
|
| 518 |
temperature = gr.Slider(
|
| 519 |
minimum=0, maximum=1, step=0.1, value=0.8,
|
| 520 |
label="์ฐฝ์์ฑ ์์ค ๐จ",
|
|
|
|
| 528 |
container=True
|
| 529 |
)
|
| 530 |
with gr.Column(scale=1):
|
| 531 |
+
gr.Markdown("### ์ ์ด ๋งค๊ฐ๋ณ์", elem_classes="settings-label")
|
| 532 |
top_p = gr.Slider(
|
| 533 |
minimum=0.0, maximum=1.0, step=0.1, value=0.8,
|
| 534 |
label="๋ค์์ฑ ์กฐ์ ๐ฏ",
|