SIGMitch commited on
Commit
bd1f4d4
·
verified ·
1 Parent(s): ca86a1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -25,6 +25,8 @@ from trellis2.utils import render_utils
25
  import o_voxel
26
 
27
 
 
 
28
  MAX_SEED = np.iinfo(np.int32).max
29
  TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
30
  MODES = [
@@ -683,4 +685,9 @@ if __name__ == "__main__":
683
  )),
684
  }
685
 
686
- demo.launch(css=css, head=head)
 
 
 
 
 
 
25
  import o_voxel
26
 
27
 
28
+ APP_PASSWORD = os.environ.get('APP_PASSWORD', 'test')
29
+
30
  MAX_SEED = np.iinfo(np.int32).max
31
  TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
32
  MODES = [
 
685
  )),
686
  }
687
 
688
+ demo.launch(
689
+ css=css,
690
+ head=head,
691
+ auth=("user", APP_PASSWORD),
692
+ auth_message="Enter password to access Hunyuan 3D Studio",
693
+ share=False)