cutechicken commited on
Commit
fd896d4
โ€ข
1 Parent(s): c9a0841

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -13
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: 20px;
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: 15px 0; /* ์—ฌ๋ฐฑ ์ฆ๊ฐ€ */
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: 15px 0; /* ์—ฌ๋ฐฑ ์ฆ๊ฐ€ */
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.1em;
460
  font-weight: 500;
461
- margin: 10px 0;
 
 
 
 
 
 
 
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="๋‹ค์–‘์„ฑ ์กฐ์ ˆ ๐ŸŽฏ",