nsarrazin HF staff commited on
Commit
dea9e62
1 Parent(s): 5ace756

fix config

Browse files
Files changed (2) hide show
  1. .template.env.local +3 -3
  2. Dockerfile +0 -3
.template.env.local CHANGED
@@ -56,9 +56,9 @@ MODELS=`[
56
  ]`
57
  OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
58
 
59
- APP_BASE=
60
- PUBLIC_ORIGIN=${SPACE_HOST}
61
- PUBLIC_SHARE_PREFIX=${SPACE_HOST}
62
  PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
63
  PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
64
  PUBLIC_ANNOUNCEMENT_BANNERS=`[
 
56
  ]`
57
  OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
58
 
59
+ APP_BASE="/chat"
60
+ PUBLIC_ORIGIN=https://huggingface.co
61
+ PUBLIC_SHARE_PREFIX=https://hf.co/chat
62
  PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
63
  PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
64
  PUBLIC_ANNOUNCEMENT_BANNERS=`[
Dockerfile CHANGED
@@ -21,15 +21,12 @@ COPY .template.env.local .template.env.local
21
  RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
22
  --mount=type=secret,id=PREPROMPT,mode=0444,required=true \
23
  --mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true \
24
- --mount=type=secret,id=SPACE_HOST,mode=0444,required=true \
25
  MODEL_NAME=$(cat /run/secrets/MODEL_NAME) \
26
  && PREPROMPT=$(cat /run/secrets/PREPROMPT) \
27
  && MODEL_TEMPERATURE=$(cat /run/secrets/MODEL_TEMPERATURE) \
28
- && SPACE_HOST=$(cat /run/secrets/SPACE_HOST) \
29
  && export MODEL_NAME \
30
  && export PREPROMPT \
31
  && export MODEL_TEMPERATURE \
32
- && export SPACE_HOST \
33
  && envsubst < ".template.env.local" > ".env.local"
34
 
35
 
 
21
  RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
22
  --mount=type=secret,id=PREPROMPT,mode=0444,required=true \
23
  --mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true \
 
24
  MODEL_NAME=$(cat /run/secrets/MODEL_NAME) \
25
  && PREPROMPT=$(cat /run/secrets/PREPROMPT) \
26
  && MODEL_TEMPERATURE=$(cat /run/secrets/MODEL_TEMPERATURE) \
 
27
  && export MODEL_NAME \
28
  && export PREPROMPT \
29
  && export MODEL_TEMPERATURE \
 
30
  && envsubst < ".template.env.local" > ".env.local"
31
 
32