mlabonne pabloce commited on
Commit
3d264a8
1 Parent(s): ee037c7

fix card layout (#8)

Browse files

- fix card layout (e877a09bbf57bc23288c33fef01eb95560fc680a)


Co-authored-by: Pablo Carrera <pabloce@users.noreply.huggingface.co>

Files changed (1) hide show
  1. ui.py +3 -3
ui.py CHANGED
@@ -22,9 +22,9 @@ css = """
22
  """
23
 
24
  PLACEHOLDER = """
25
- <div class="message-bubble-border" style="display:flex; max-width: 600px; border-width: 0px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px);">
26
- <figure style="margin: 0;">
27
- <img src="https://i.imgur.com/ZHwzQvI.png" alt="Logo" style="width: 100%; height: 100%; border-radius: 8px;">
28
  </figure>
29
  <div style="padding: .5rem 1.5rem;">
30
  <h2 style="text-align: left; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;">Fine-tune Llama 3 with ORPO</h2>
 
22
  """
23
 
24
  PLACEHOLDER = """
25
+ <div class="message-bubble-border" style="display:flex; flex-flow: column; max-width: 600px; border-width: 0px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px);">
26
+ <figure style="margin: 0;padding-top: 22%;width: 100%;position: relative;">
27
+ <img src="https://i.imgur.com/ZHwzQvI.png" alt="Logo" style="width: 100%; height: 100%; border-radius: 8px;position: absolute;top: 0;left: 0;object-fit: cover;">
28
  </figure>
29
  <div style="padding: .5rem 1.5rem;">
30
  <h2 style="text-align: left; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;">Fine-tune Llama 3 with ORPO</h2>