Borzyszkowski commited on
Commit
7b7f57d
·
1 Parent(s): e8e2b5c

adjusted width

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. style.py +3 -3
app.py CHANGED
@@ -59,7 +59,7 @@ def start_app():
59
 
60
  gr.HTML(f"""
61
  <div class="app-header">
62
- <img src="{logo_data_url}" alt="AlpineLLM" style="max-height:10%; width: 800px; margin: 10px auto; display: block;">
63
  </div>
64
  <div class="quick-links">
65
  <a href="https://github.com/Borzyszkowski/AlpineLLM" target="_blank">GitHub</a> | <a href="https://huggingface.co/Borzyszkowski/AlpineLLM-Tiny-10M-Base" target="_blank">Model Page</a>
 
59
 
60
  gr.HTML(f"""
61
  <div class="app-header">
62
+ <img src="{logo_data_url}" alt="AlpineLLM" style="max-height:10%; width: auto; margin: 10px auto; display: block;">
63
  </div>
64
  <div class="quick-links">
65
  <a href="https://github.com/Borzyszkowski/AlpineLLM" target="_blank">GitHub</a> | <a href="https://huggingface.co/Borzyszkowski/AlpineLLM-Tiny-10M-Base" target="_blank">Model Page</a>
style.py CHANGED
@@ -3,12 +3,12 @@
3
  # =========================
4
  custom_css = """
5
  body, .gradio-container { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
6
- .app-header { text-align: center; max-width: 1200px; margin: 0 auto 8px !important; }
7
  .gradio-container { padding: 4px 0 !important; max-width: 1200px !important; margin: 0 auto !important; }
8
  .gradio-container [data-testid="tabs"], .gradio-container .tabs { margin-top: 0 !important; }
9
  .gradio-container [data-testid="tabitem"], .gradio-container .tabitem { padding-top: 4px !important; }
10
  .gradio-container .wrap { gap: 0 !important; }
11
- .quick-links { text-align: center; padding: 8px 0; border: 1px solid #e5e7eb; border-radius: 8px; margin: 8px auto; max-width: 1200px; }
12
  .quick-links a { margin: 0 12px; font-size: 14px; font-weight: 600; color: #3b82f6; text-decoration: none; }
13
  .quick-links a:hover { text-decoration: underline; }
14
  .prompt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@@ -18,7 +18,7 @@ body, .gradio-container { font-family: "Noto Sans SC", "Microsoft YaHei", "PingF
18
  #md_preview_vl, #md_preview_doc { max-height: 540px; min-height: 180px; overflow: auto; scrollbar-gutter: stable both-edges; }
19
  #md_preview_vl .prose, #md_preview_doc .prose { line-height: 1.7 !important; }
20
  #md_preview_vl .prose img, #md_preview_doc .prose img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
21
- .notice { margin: 8px auto 0; max-width: 1200px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; font-size: 14px; line-height: 1.6; }
22
  .notice strong { font-weight: 700; }
23
  .notice a { color: #3b82f6; text-decoration: none; }
24
  .notice a:hover { text-decoration: underline; }
 
3
  # =========================
4
  custom_css = """
5
  body, .gradio-container { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
6
+ .app-header { text-align: center; max-width: 800px; margin: 0 auto 8px !important; }
7
  .gradio-container { padding: 4px 0 !important; max-width: 1200px !important; margin: 0 auto !important; }
8
  .gradio-container [data-testid="tabs"], .gradio-container .tabs { margin-top: 0 !important; }
9
  .gradio-container [data-testid="tabitem"], .gradio-container .tabitem { padding-top: 4px !important; }
10
  .gradio-container .wrap { gap: 0 !important; }
11
+ .quick-links { text-align: center; padding: 8px 0; border: 1px solid #e5e7eb; border-radius: 8px; margin: 8px auto; max-width: 800px; }
12
  .quick-links a { margin: 0 12px; font-size: 14px; font-weight: 600; color: #3b82f6; text-decoration: none; }
13
  .quick-links a:hover { text-decoration: underline; }
14
  .prompt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
 
18
  #md_preview_vl, #md_preview_doc { max-height: 540px; min-height: 180px; overflow: auto; scrollbar-gutter: stable both-edges; }
19
  #md_preview_vl .prose, #md_preview_doc .prose { line-height: 1.7 !important; }
20
  #md_preview_vl .prose img, #md_preview_doc .prose img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
21
+ .notice { margin: 8px auto 0; max-width: 800px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; font-size: 14px; line-height: 1.6; }
22
  .notice strong { font-weight: 700; }
23
  .notice a { color: #3b82f6; text-decoration: none; }
24
  .notice a:hover { text-decoration: underline; }