MeYourHint commited on
Commit
340bd0a
Β·
1 Parent(s): 5a5c607
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -34,7 +34,7 @@ from gen_t2m import load_vq_model, load_res_model, load_trans_model, load_len_es
34
 
35
  clip_version = 'ViT-B/32'
36
 
37
- Total_Calls = 0
38
  WEBSITE = f"""
39
  <div class="embed_hidden">
40
  <h1 style='text-align: center'> MoMask: Generative Masked Modeling of 3D Human Motions </h1>
@@ -54,7 +54,7 @@ WEBSITE = f"""
54
  <a target="_blank" href="https://ericguo5513.github.io/momask/"> <button type="button" class="btn btn-primary btn-lg"> Webpage </button></a> &ensp;
55
  <a target="_blank" href="https://ericguo5513.github.io/source_files/momask_2023_bib.txt"> <button type="button" class="btn btn-primary btn-lg"> BibTex </button></a> &ensp;
56
  <a target="_blank" href="https://huggingface.co/spaces/MeYourHint/MoMask?docker=true" title="Run with docker"> <button type="button" class="btn btn-primary btn-lg"> Docker </button></a> &ensp;
57
- <a target="_blank" href="https://huggingface.co/spaces/MeYourHint/MoMask?duplicate=true" title="Duplicate space with private gpu and no queue"> <button type="button" class="btn btn-primary btn-lg"> Duplicate </button></a>
58
  <img src=https://img.shields.io/badge/Visit-{Total_Calls}-green>
59
  </h3>
60
  <h3> Description </h3>
@@ -65,8 +65,7 @@ WEBSITE = f"""
65
  πŸš€πŸš€πŸš€ In addition, we provide a link to download the generated human skeletal motion in <b>BVH</b> file format, compatible with CG software such as Blender!!! πŸš€πŸš€πŸš€
66
  </p>
67
  <p>
68
- <script async defer src="https://buttons.github.io/buttons.js"></script>
69
- 😁😁😁 If you find this demo interesting, we would appreciate your star on our <a href="https://github.com/EricGuo5513/momask-codes" target="_blank">github</a> <a class="github-button" href="https://github.com/EricGuo5513/momask-codes" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Star EricGuo5513/momask-codes on GitHub">Star</a>. More details could be found on our <a href='https://ericguo5513.github.io/momask/' target='_blank'>webpage</a>. 🫢🫢🫢
70
  </p>
71
  <p>
72
  If you have any issues on this space or feature requests, we warmly welcome you to contact us through our <a href="https://github.com/EricGuo5513/momask-codes/issues" target="_blank">github repo</a> or <a href="mailto:[email protected]?subject =[MoMask]Feedback&body = Message">email</a>.
@@ -132,7 +131,7 @@ if not os.path.exists("/data/stats"):
132
 
133
  def update_total_calls():
134
  global Total_Calls
135
- Total_Calls_offset = 4730 ## init number from visit, 01/07
136
  with open("/data/stats/Prompts.text", 'r') as f:
137
  Total_Calls = len(f.readlines()) + Total_Calls_offset
138
 
 
34
 
35
  clip_version = 'ViT-B/32'
36
 
37
+ Total_Calls = 7792
38
  WEBSITE = f"""
39
  <div class="embed_hidden">
40
  <h1 style='text-align: center'> MoMask: Generative Masked Modeling of 3D Human Motions </h1>
 
54
  <a target="_blank" href="https://ericguo5513.github.io/momask/"> <button type="button" class="btn btn-primary btn-lg"> Webpage </button></a> &ensp;
55
  <a target="_blank" href="https://ericguo5513.github.io/source_files/momask_2023_bib.txt"> <button type="button" class="btn btn-primary btn-lg"> BibTex </button></a> &ensp;
56
  <a target="_blank" href="https://huggingface.co/spaces/MeYourHint/MoMask?docker=true" title="Run with docker"> <button type="button" class="btn btn-primary btn-lg"> Docker </button></a> &ensp;
57
+ <a target="_blank" href="https://huggingface.co/spaces/MeYourHint/MoMask?duplicate=true" title="Duplicate space with private gpu and no queue"> <button type="button" class="btn btn-primary btn-lg"> Duplicate </button></a> &ensp;
58
  <img src=https://img.shields.io/badge/Visit-{Total_Calls}-green>
59
  </h3>
60
  <h3> Description </h3>
 
65
  πŸš€πŸš€πŸš€ In addition, we provide a link to download the generated human skeletal motion in <b>BVH</b> file format, compatible with CG software such as Blender!!! πŸš€πŸš€πŸš€
66
  </p>
67
  <p>
68
+ 😁😁😁 If you find this demo interesting, we would appreciate your star <a href="https://github.com/EricGuo5513/momask-codes" target="_blank"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/EricGuo5513/momask-codes"></a>. More details could be found on our <a href='https://ericguo5513.github.io/momask/' target='_blank'>webpage</a>. 🫢🫢🫢
 
69
  </p>
70
  <p>
71
  If you have any issues on this space or feature requests, we warmly welcome you to contact us through our <a href="https://github.com/EricGuo5513/momask-codes/issues" target="_blank">github repo</a> or <a href="mailto:[email protected]?subject =[MoMask]Feedback&body = Message">email</a>.
 
131
 
132
  def update_total_calls():
133
  global Total_Calls
134
+ Total_Calls_offset = 7792 ## init number from visit, 01/07
135
  with open("/data/stats/Prompts.text", 'r') as f:
136
  Total_Calls = len(f.readlines()) + Total_Calls_offset
137