marcuskwan commited on
Commit
2736170
·
verified ·
1 Parent(s): 005700f

Publish relight five-model comparison

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -51,12 +51,12 @@ def render(sample_id):
51
  prompt = row["prompt"].replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
52
  return f"""
53
  <style>
54
- .wrap { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
55
- .prompt { padding: 12px; border: 1px solid #ddd; background: #fafafa; margin-bottom: 14px; white-space: pre-wrap; line-height: 1.45; }
56
- .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; }
57
- .image-cell { border: 1px solid #ddd; border-radius: 8px; padding: 8px; background: white; }
58
- .label { font-weight: 700; margin-bottom: 6px; }
59
- img { width: 100%; max-height: 360px; object-fit: contain; display: block; }
60
  </style>
61
  <div class='wrap'>
62
  <h3>Sample {row["sample_id"]}</h3>
 
51
  prompt = row["prompt"].replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
52
  return f"""
53
  <style>
54
+ .wrap {{ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }}
55
+ .prompt {{ padding: 12px; border: 1px solid #ddd; background: #fafafa; margin-bottom: 14px; white-space: pre-wrap; line-height: 1.45; }}
56
+ .grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; }}
57
+ .image-cell {{ border: 1px solid #ddd; border-radius: 8px; padding: 8px; background: white; }}
58
+ .label {{ font-weight: 700; margin-bottom: 6px; }}
59
+ img {{ width: 100%; max-height: 360px; object-fit: contain; display: block; }}
60
  </style>
61
  <div class='wrap'>
62
  <h3>Sample {row["sample_id"]}</h3>