jialinyyzz commited on
Commit
fdde01a
·
verified ·
1 Parent(s): ef2e115

Download buttons fetch the .dmg / setup .exe directly

Browse files
Files changed (1) hide show
  1. page.py +7 -4
page.py CHANGED
@@ -14,6 +14,9 @@ import diffmark
14
 
15
  GH = "https://github.com/sgaofen/humanize-model"
16
  REL = GH + "/releases/latest"
 
 
 
17
  BLOB = GH + "/blob/main/"
18
  HF_MODEL = "https://huggingface.co/jialinyyzz/humanizer"
19
  INSTALL_EN = BLOB + "docs/INSTALL.md#first-launch-warnings"
@@ -207,11 +210,11 @@ def local_section() -> str:
207
  <article class="card card-app">
208
  <div class="card-head">{icon("down")}<h3>{L("The app", "App")}</h3><span class="badge">{L("easiest", "最省事")}</span></div>
209
  <div class="dl-row">
210
- {A(REL, icon("apple") + '<span>' + L("Mac", "Mac") + '<small>' + L("Apple silicon · .dmg", "Apple 芯片 · .dmg") + '</small></span>', "dl")}
211
- {A(REL, icon("win") + '<span>' + L("Windows", "Windows") + '<small>' + L("x64 · setup .exe or .zip", "x64 · 安装包 .exe 或 .zip") + '</small></span>', "dl")}
212
  </div>
213
- {P("Double-click it and the app opens in your browser. On first run it checks your memory, suggests a model size and downloads it once from Hugging Face. Paste a draft on the left; the rewrite streams in on the right with the new wording highlighted.",
214
- "双击后 App 会在浏览器里打开。第一次运行时它会看你的内存、推荐一个档位,从 Hugging Face 下载一次模型。左边贴草稿,右边流式出改写,新写的部分用荧光笔标出。")}
215
  <table class="tiers mono">
216
  <tr><th>{L("Memory", "内存")}</th><th>{L("File", "文件")}</th><th>{L("Download", "下载")}</th></tr>
217
  <tr><td>{L("32 GB or more", "32 GB 及以上")}</td><td>Q8_0</td><td>12.7 GB</td></tr>
 
14
 
15
  GH = "https://github.com/sgaofen/humanize-model"
16
  REL = GH + "/releases/latest"
17
+ APP_DL = GH + "/releases/download/app-v0.1.0/" # direct files; bump with each app release
18
+ MAC_DMG = APP_DL + "Humanizer-0.1.0-macos-arm64.dmg"
19
+ WIN_EXE = APP_DL + "Humanizer-0.1.0-windows-x64-setup.exe"
20
  BLOB = GH + "/blob/main/"
21
  HF_MODEL = "https://huggingface.co/jialinyyzz/humanizer"
22
  INSTALL_EN = BLOB + "docs/INSTALL.md#first-launch-warnings"
 
210
  <article class="card card-app">
211
  <div class="card-head">{icon("down")}<h3>{L("The app", "App")}</h3><span class="badge">{L("easiest", "最省事")}</span></div>
212
  <div class="dl-row">
213
+ {A(MAC_DMG, icon("apple") + '<span>' + L("Mac", "Mac") + '<small>' + L("Apple silicon · .dmg", "Apple 芯片 · .dmg") + '</small></span>', "dl")}
214
+ {A(WIN_EXE, icon("win") + '<span>' + L("Windows", "Windows") + '<small>' + L("x64 · setup .exe", "x64 · 安装包 .exe") + '</small></span>', "dl")}
215
  </div>
216
+ {P("Double-click it and the app opens in your browser. On first run it checks your memory, suggests a model size and downloads it once from Hugging Face. Paste a draft on the left; the rewrite streams in on the right with the new wording highlighted. Windows without installing, and checksums: <a href='" + REL + "' target='_blank' rel='noopener'>all release files</a>.",
217
+ "双击后 App 会在浏览器里打开。第一次运行时它会看你的内存、推荐一个档位,从 Hugging Face 下载一次模型。左边贴草稿,右边流式出改写,新写的部分用荧光笔标出。Windows 免安装版和校验值见<a href='" + REL + "' target='_blank' rel='noopener'>全部发布文件</a>。")}
218
  <table class="tiers mono">
219
  <tr><th>{L("Memory", "内存")}</th><th>{L("File", "文件")}</th><th>{L("Download", "下载")}</th></tr>
220
  <tr><td>{L("32 GB or more", "32 GB 及以上")}</td><td>Q8_0</td><td>12.7 GB</td></tr>