Jahnavibh Claude commited on
Commit
4600993
·
1 Parent(s): 3fa040e

Add informational footer box with links to documentation

Browse files

- Added custom footer styling with white background and shadow
- Included links to Evaluate Model Guide and SR Quick Start page
- Matches the design from SR demo application

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Files changed (1) hide show
  1. app.py +32 -0
app.py CHANGED
@@ -321,6 +321,24 @@ with gr.Blocks(
321
  color: #374151 !important;
322
  font-size: 0.85rem !important;
323
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324
  """
325
  ) as demo:
326
 
@@ -427,6 +445,20 @@ with gr.Blocks(
427
  inputs=input_image,
428
  outputs=output_text
429
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
 
431
  # Launch the demo
432
  if __name__ == "__main__":
 
321
  color: #374151 !important;
322
  font-size: 0.85rem !important;
323
  }
324
+ .custom-footer {
325
+ max-width: 800px !important;
326
+ margin: 2rem auto !important;
327
+ background: white !important;
328
+ border-radius: 12px !important;
329
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
330
+ border: 1px solid #e5e7eb !important;
331
+ padding: 1.5rem !important;
332
+ text-align: center !important;
333
+ }
334
+ .custom-footer a {
335
+ color: #1975cf !important;
336
+ text-decoration: none !important;
337
+ font-weight: 600 !important;
338
+ }
339
+ .custom-footer a:hover {
340
+ text-decoration: underline !important;
341
+ }
342
  """
343
  ) as demo:
344
 
 
445
  inputs=input_image,
446
  outputs=output_text
447
  )
448
+
449
+ # Footer
450
+ gr.HTML("""
451
+ <div class="custom-footer">
452
+ <div style="margin-bottom: 0.5rem;">
453
+ For a detailed walkthrough, please see our
454
+ <a href="http://localhost:3000/sr/evaluate-sr" target="_blank">Evaluate Model Guide</a>.
455
+ </div>
456
+ <div>
457
+ To get started quickly, visit our
458
+ <a href="http://localhost:3000/sr/quick-start" target="_blank">SR Quick Start page</a>.
459
+ </div>
460
+ </div>
461
+ """)
462
 
463
  # Launch the demo
464
  if __name__ == "__main__":