openfree commited on
Commit
8d47d08
Β·
verified Β·
1 Parent(s): b533f70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -9
app.py CHANGED
@@ -1450,16 +1450,27 @@ def format_webnovel_display(episodes: List[Dict], genre: str) -> str:
1450
  # --- Gradio interface ---
1451
  def create_interface():
1452
  with gr.Blocks(theme=gr.themes.Soft(), title="K-WebNovel Generator") as interface:
1453
- gr.HTML("""
1454
- <div style="text-align: center; margin-bottom: 2rem;">
1455
- <h1 style="font-size: 3rem; margin-bottom: 1rem;">πŸ“š K-WebNovel Generator</h1>
1456
- <p style="font-size: 1.2rem;">ν•œκ΅­ν˜• μ›Ήμ†Œμ„€ μžλ™ 생성 μ‹œμŠ€ν…œ</p>
1457
- <p>μž₯λ₯΄λ³„ λ§žμΆ€ν˜• 40ν™” μ™„κ²° μ›Ήμ†Œμ„€μ„ μƒμ„±ν•©λ‹ˆλ‹€</p>
1458
- </div>
1459
- """)
1460
-
1461
  gr.HTML("""
1462
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1463
  .badges-container {
1464
  display: flex;
1465
  justify-content: center;
@@ -1479,6 +1490,14 @@ gr.HTML("""
1479
  }
1480
 
1481
  @media (max-width: 768px) {
 
 
 
 
 
 
 
 
1482
  .badges-container {
1483
  gap: 6px;
1484
  }
@@ -1490,7 +1509,7 @@ gr.HTML("""
1490
  </style>
1491
 
1492
  <div class="main-header">
1493
- <h1 class="header-title">πŸ“– AGI NOVEL Generator</h1>
1494
 
1495
  <div class="badges-container">
1496
  <a href="https://huggingface.co/spaces/fantaxy/AGI-LEADERBOARD" target="_blank">
@@ -1509,6 +1528,9 @@ gr.HTML("""
1509
  <img src="https://img.shields.io/static/v1?label=OpenFree&message=BEST%20AI&color=%23d4a574&labelColor=%235a3e28&logo=huggingface&logoColor=%23faf8f5&style=for-the-badge" alt="badge">
1510
  </a>
1511
  </div>
 
 
 
1512
  </div>
1513
  """)
1514
 
 
1450
  # --- Gradio interface ---
1451
  def create_interface():
1452
  with gr.Blocks(theme=gr.themes.Soft(), title="K-WebNovel Generator") as interface:
 
 
 
 
 
 
 
 
1453
  gr.HTML("""
1454
  <style>
1455
+ .main-header {
1456
+ text-align: center;
1457
+ margin-bottom: 2rem;
1458
+ }
1459
+
1460
+ .header-title {
1461
+ font-size: 3rem;
1462
+ margin-bottom: 1rem;
1463
+ }
1464
+
1465
+ .header-subtitle {
1466
+ font-size: 1.2rem;
1467
+ margin-bottom: 0.5rem;
1468
+ }
1469
+
1470
+ .header-description {
1471
+ margin-bottom: 1.5rem;
1472
+ }
1473
+
1474
  .badges-container {
1475
  display: flex;
1476
  justify-content: center;
 
1490
  }
1491
 
1492
  @media (max-width: 768px) {
1493
+ .header-title {
1494
+ font-size: 2.5rem;
1495
+ }
1496
+
1497
+ .header-subtitle {
1498
+ font-size: 1.1rem;
1499
+ }
1500
+
1501
  .badges-container {
1502
  gap: 6px;
1503
  }
 
1509
  </style>
1510
 
1511
  <div class="main-header">
1512
+ <h1 class="header-title">πŸ“š K-WebNovel Generator</h1>
1513
 
1514
  <div class="badges-container">
1515
  <a href="https://huggingface.co/spaces/fantaxy/AGI-LEADERBOARD" target="_blank">
 
1528
  <img src="https://img.shields.io/static/v1?label=OpenFree&message=BEST%20AI&color=%23d4a574&labelColor=%235a3e28&logo=huggingface&logoColor=%23faf8f5&style=for-the-badge" alt="badge">
1529
  </a>
1530
  </div>
1531
+
1532
+ <p class="header-subtitle">ν•œκ΅­ν˜• μ›Ήμ†Œμ„€ μžλ™ 생성 μ‹œμŠ€ν…œ</p>
1533
+ <p class="header-description">μž₯λ₯΄λ³„ λ§žμΆ€ν˜• 40ν™” μ™„κ²° μ›Ήμ†Œμ„€μ„ μƒμ„±ν•©λ‹ˆλ‹€</p>
1534
  </div>
1535
  """)
1536