github-actions[bot] commited on
Commit
95ad503
·
1 Parent(s): 4e59076

Deploy from GitHub - 2026-01-21 21:52:56

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -2304,18 +2304,25 @@ with gr.Blocks(
2304
  css=custom_css,
2305
  ) as demo:
2306
 
 
 
 
 
 
 
 
2307
  # Header with Portal-style hero section
2308
  cuda_badge = f"<span class='backend-badge'>CUDA Accelerated</span>" if CUDA_KERNELS_AVAILABLE else ""
2309
- gr.Markdown(f"""
2310
- <div style="text-align: center; padding: 3rem 0 2rem 0;">
2311
- <h1 style="font-size: 3rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, #6366F1, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;">
2312
  StyleForge
2313
  </h1>
2314
- <p style="color: #6B7280; font-size: 1.1rem; margin-bottom: 1rem;">
2315
  Neural Style Transfer with Custom CUDA Kernels
2316
  </p>
2317
  {cuda_badge}
2318
- <p style="color: #9CA3AF; margin-top: 1rem; font-size: 0.9rem;">
2319
  Custom Styles • Region Transfer • Style Blending • Real-time Processing
2320
  </p>
2321
  </div>
 
2304
  css=custom_css,
2305
  ) as demo:
2306
 
2307
+ # Load Google Fonts via HTML head injection
2308
+ gr.HTML("""
2309
+ <link rel="preconnect" href="https://fonts.googleapis.com">
2310
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2311
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
2312
+ """)
2313
+
2314
  # Header with Portal-style hero section
2315
  cuda_badge = f"<span class='backend-badge'>CUDA Accelerated</span>" if CUDA_KERNELS_AVAILABLE else ""
2316
+ gr.HTML(f"""
2317
+ <div style="text-align: center; padding: 3rem 0 2rem 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">
2318
+ <h1 style="font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 3rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, #6366F1, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;">
2319
  StyleForge
2320
  </h1>
2321
+ <p style="font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #6B7280; font-size: 1.1rem; margin-bottom: 1rem;">
2322
  Neural Style Transfer with Custom CUDA Kernels
2323
  </p>
2324
  {cuda_badge}
2325
+ <p style="font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #9CA3AF; margin-top: 1rem; font-size: 0.9rem;">
2326
  Custom Styles • Region Transfer • Style Blending • Real-time Processing
2327
  </p>
2328
  </div>