zhzluke96 commited on
Commit
0cb7b72
1 Parent(s): f83b1b7
Files changed (2) hide show
  1. .env.webui +3 -0
  2. modules/webui/app.py +3 -3
.env.webui CHANGED
@@ -15,3 +15,6 @@ OFF_TQDM=True
15
  TTS_MAX_LEN=1000
16
  SSML_MAX_LEN=3000
17
  MAX_BATCH_SIZE=12
 
 
 
 
15
  TTS_MAX_LEN=1000
16
  SSML_MAX_LEN=3000
17
  MAX_BATCH_SIZE=12
18
+
19
+ V_GIT_TAG=🤗hf
20
+ V_GIT_COMMIT=ad85e665bb02163f983d558a0a2c86d66d2d7053
modules/webui/app.py CHANGED
@@ -30,9 +30,9 @@ def webui_init():
30
 
31
  def create_app_footer():
32
  gradio_version = gr.__version__
33
- git_tag = config.versions.git_tag
34
- git_commit = config.versions.git_commit
35
- git_branch = config.versions.git_branch
36
  python_version = config.versions.python_version
37
  torch_version = config.versions.torch_version
38
 
 
30
 
31
  def create_app_footer():
32
  gradio_version = gr.__version__
33
+ git_tag = os.environ.get("V_GIT_TAG") or config.versions.git_tag
34
+ git_commit = os.environ.get("V_GIT_COMMIT") or config.versions.git_commit
35
+ git_branch = os.environ.get("V_GIT_BRANCH") or config.versions.git_branch
36
  python_version = config.versions.python_version
37
  torch_version = config.versions.torch_version
38