mirror of
https://github.com/tiennm99/phow2sim.git
synced 2026-10-03 05:13:14 +00:00
Simpler contract: operator hosts the zip behind any URL that answers a plain GET (Nextcloud public share, signed S3/R2 URL, etc.). Any auth is baked into the URL; the service sends no Authorization headers. Removes MODEL_DOWNLOAD_USER / MODEL_DOWNLOAD_PASSWORD and their plumbing. .env.example and README rewritten around the URL-only flow.
16 lines
662 B
Bash
16 lines
662 B
Bash
# Copy to `.env` and fill in. `.env` is gitignored.
|
|
|
|
# URL that serves the PhoW2V zip with a plain HTTP(S) GET.
|
|
# Host it however you like; any auth must be baked into the URL itself
|
|
# (share token, signed URL, etc.). The service sends no Authorization
|
|
# headers. PhoW2V's license forbids *public* redistribution, so use a
|
|
# private/unlisted URL you control.
|
|
#
|
|
# Nextcloud public-share example (no share password):
|
|
# MODEL_URL=https://cloud.example.com/s/abc123XYZ/download
|
|
MODEL_URL=https://cloud.example.com/s/REPLACE_ME/download
|
|
|
|
# Variant — must match the filename inside the zip.
|
|
MODEL_PATH=/data/phow2v/word2vec_vi_words_300dims.txt
|
|
MODEL_VARIANT=word
|