Spaces:
Running
Running
MeYourHint
commited on
Commit
Β·
340bd0a
1
Parent(s):
5a5c607
Update
Browse files
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 =
|
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>  
|
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>  
|
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>  
|
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 |
-
<
|
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 =
|
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>  
|
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>  
|
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>  
|
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 |
πππ 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 |
|