LPX commited on
Commit
4fec5e8
·
1 Parent(s): b8128c0

🎨 style(model):

Browse files

- added card footer for consistent styling
-- increased style font-small size .66, with no-wrap

---
fix(results):
- resizes grid size columns for tablets and desktop the same as mobile

Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -190,7 +190,9 @@ def generate_results_html(results):
190
  <div class="flex flex-col items-start">
191
  <h4 class="mt-4 text-sm font-semibold tracking-wide">{model_name}</h4>
192
  <div class="text-xs font-mono">Real: {real_conf:.4f}, AI: {ai_conf:.4f}</div>
193
- <a href="https://huggingface.co/{model_path}" target="_blank" class="mt-2 text-xs tracking-wide">by @{contributor}</a>
 
 
194
  </div>
195
  </div>
196
  """
@@ -198,7 +200,7 @@ def generate_results_html(results):
198
  html_content = f"""
199
  <link href="https://unpkg.com/[email protected]/dist/tailwind.min.css" rel="stylesheet">
200
  <div class="container mx-auto">
201
- <div class="grid xl:grid-cols-5 md:grid-cols-5 grid-cols-1 gap-1">
202
  {generate_tile_html(0, results[0], "SwinV2 Based", "haywoodsloan", MODEL_PATHS["model_1"])}
203
  {generate_tile_html(1, results[1], "ViT Based", "Heem2", MODEL_PATHS["model_2"])}
204
  {generate_tile_html(2, results[2], "SDXL Dataset", "Organika", MODEL_PATHS["model_3"])}
 
190
  <div class="flex flex-col items-start">
191
  <h4 class="mt-4 text-sm font-semibold tracking-wide">{model_name}</h4>
192
  <div class="text-xs font-mono">Real: {real_conf:.4f}, AI: {ai_conf:.4f}</div>
193
+ <div class="card-footer">
194
+ <a href="https://huggingface.co/{model_path}" target="_blank" class="mt-2 text-xs tracking-wide nowrap" style="font-size:0.66rem !important;">by @{contributor}</a>
195
+ </div>
196
  </div>
197
  </div>
198
  """
 
200
  html_content = f"""
201
  <link href="https://unpkg.com/[email protected]/dist/tailwind.min.css" rel="stylesheet">
202
  <div class="container mx-auto">
203
+ <div class="grid xl:grid-cols-4 md:grid-cols-4 grid-cols-1 gap-1">
204
  {generate_tile_html(0, results[0], "SwinV2 Based", "haywoodsloan", MODEL_PATHS["model_1"])}
205
  {generate_tile_html(1, results[1], "ViT Based", "Heem2", MODEL_PATHS["model_2"])}
206
  {generate_tile_html(2, results[2], "SDXL Dataset", "Organika", MODEL_PATHS["model_3"])}