Borzyszkowski commited on
Commit
bc7b6c9
·
1 Parent(s): fefddfe

updated layout

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. style.py +1 -0
app.py CHANGED
@@ -56,13 +56,13 @@ def start_app():
56
  )
57
  gr.HTML(f"""<div class="app-header"><img src="{logo_data_url}" alt="AlpineLLM" style="max-height:10%; width: auto; margin: 10px auto; display: block;"></div>""")
58
  gr.HTML("""<div class="quick-links"><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></div>""")
59
- gr.HTML("""<div class="notice"><strong>Heads up:</strong> This space shows a free CPU-only demo of the model, so inference may take a few seconds. Text generation of the tiny model may lack full coherence due to its limited size and character-level tokenization. For improved results, consider using the source repository to load larger pretrained weights and run inference on a GPU. </div>""")
60
 
61
  gr.Markdown("<h4> About AlpineLLM</h4>")
62
  gr.Markdown(
63
  "<p>"
64
  "AlpineLLM-Tiny-10M-Base is a lightweight base language model with ~10.8 million trainable parameters. It was pre-trained from scratch on raw text corpora drawn primarily from public-domain literature on alpinism, including expedition narratives and climbing essays. <br><br>"
65
- "This demo showcases the models text generation capabilities within its specialized domain. Please note that AlpineLLM is a base model, and it has not been fine-tuned for downstream tasks such as summarization or dialogue. Its outputs reflect patterns learned directly from the training texts. <br><br>"
66
  "</p>"
67
  )
68
  with gr.Row():
 
56
  )
57
  gr.HTML(f"""<div class="app-header"><img src="{logo_data_url}" alt="AlpineLLM" style="max-height:10%; width: auto; margin: 10px auto; display: block;"></div>""")
58
  gr.HTML("""<div class="quick-links"><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></div>""")
59
+ gr.HTML("""<div class="notice"><strong>Heads up:</strong> This space shows a free CPU-only demo of the model, so inference may take a few seconds. Text generation of the tiny model may lack full coherence due to its limited size and character-level tokenization. Consider using the source repository to load larger pretrained weights and run inference on a GPU. </div> <br> """)
60
 
61
  gr.Markdown("<h4> About AlpineLLM</h4>")
62
  gr.Markdown(
63
  "<p>"
64
  "AlpineLLM-Tiny-10M-Base is a lightweight base language model with ~10.8 million trainable parameters. It was pre-trained from scratch on raw text corpora drawn primarily from public-domain literature on alpinism, including expedition narratives and climbing essays. <br><br>"
65
+ "This demo showcases the model's text generation capabilities within its specialized domain. Please note that AlpineLLM is a base model, and it has not been fine-tuned for downstream tasks such as summarization or dialogue. Its outputs reflect patterns learned directly from the training texts. <br><br>"
66
  "</p>"
67
  )
68
  with gr.Row():
style.py CHANGED
@@ -7,6 +7,7 @@ body, .gradio-container { font-family: "Noto Sans SC", "Microsoft YaHei", "PingF
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
  .quick-links { text-align: center; padding: 8px 0; border: 1px solid #e5e7eb; border-radius: 8px; margin: 8px auto; max-width: 1200px; }
11
  .quick-links a { margin: 0 12px; font-size: 14px; font-weight: 600; color: #3b82f6; text-decoration: none; }
12
  .quick-links a:hover { text-decoration: underline; }
 
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; }