DawnC commited on
Commit
b8eee8b
·
1 Parent(s): cfde352

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -13
app.py CHANGED
@@ -532,27 +532,34 @@ async def predict(image):
532
  .akc-button {{
533
  display: inline-flex;
534
  align-items: center;
535
- padding: 12px 24px;
536
- background: linear-gradient(145deg, #00509E, #003F7F);
537
  color: white;
538
- border-radius: 8px;
539
  text-decoration: none;
540
- gap: 8px;
541
  transition: all 0.3s ease;
542
  font-weight: 600;
543
  font-size: 1.1em;
544
  box-shadow:
545
  0 2px 4px rgba(0,0,0,0.1),
546
  inset 0 1px 1px rgba(255,255,255,0.1);
 
547
  }}
548
 
549
  .akc-button:hover {{
550
- background: linear-gradient(145deg, #003F7F, #00509E); /* 懸停時反轉漸層方向 */
551
- transform: translateY(-1px);
552
  color: white;
553
  box-shadow:
554
- 0 4px 8px rgba(0,0,0,0.15),
555
- inset 0 1px 1px rgba(255,255,255,0.2);
 
 
 
 
 
 
556
  }}
557
 
558
  .warning-message {{
@@ -671,11 +678,6 @@ async def predict(image):
671
  return error_msg, None, None
672
 
673
 
674
-
675
-
676
-
677
-
678
-
679
  def show_details_html(choice, previous_output, initial_state):
680
  if not choice:
681
  return previous_output, gr.update(visible=True), initial_state
 
532
  .akc-button {{
533
  display: inline-flex;
534
  align-items: center;
535
+ padding: 14px 28px; /* 稍微加大按鈕尺寸 */
536
+ background: linear-gradient(145deg, #00509E, #003F7F);
537
  color: white;
538
+ border-radius: 12px; /* 增加圓角 */
539
  text-decoration: none;
540
+ gap: 12px; /* 增加圖標和文字間距 */
541
  transition: all 0.3s ease;
542
  font-weight: 600;
543
  font-size: 1.1em;
544
  box-shadow:
545
  0 2px 4px rgba(0,0,0,0.1),
546
  inset 0 1px 1px rgba(255,255,255,0.1);
547
+ border: 1px solid rgba(255,255,255,0.1);
548
  }}
549
 
550
  .akc-button:hover {{
551
+ background: linear-gradient(145deg, #003F7F, #00509E);
552
+ transform: translateY(-2px);
553
  color: white;
554
  box-shadow:
555
+ 0 6px 12px rgba(0,0,0,0.2),
556
+ inset 0 1px 1px rgba(255,255,255,0.2);
557
+ border: 1px solid rgba(255,255,255,0.2);
558
+ }}
559
+
560
+ .icon {{
561
+ font-size: 1.3em;
562
+ filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
563
  }}
564
 
565
  .warning-message {{
 
678
  return error_msg, None, None
679
 
680
 
 
 
 
 
 
681
  def show_details_html(choice, previous_output, initial_state):
682
  if not choice:
683
  return previous_output, gr.update(visible=True), initial_state