zRzRzRzRzRzRzR multimodalart HF staff commited on
Commit
0922892
1 Parent(s): c2c07ee

Optimizations for duplication (#4)

Browse files

- Suggested hardware for duplication (3a4e9d4c32b27d2e6ab3159a05d191f6fe70bde7)
- Update app.py (f6800e7fd41f2e3b9af6b231c49e0340deea90fc)


Co-authored-by: Apolinário from multimodal AI art <[email protected]>

Files changed (2) hide show
  1. README.md +1 -2
  2. app.py +8 -1
README.md CHANGED
@@ -5,8 +5,7 @@ colorFrom: yellow
5
  colorTo: blue
6
  sdk: gradio
7
  sdk_version: 4.42.0
8
- suggested_hardware: a10g-large
9
- suggested_storage: large
10
  app_port: 7860
11
  app_file: app.py
12
  models:
 
5
  colorTo: blue
6
  sdk: gradio
7
  sdk_version: 4.42.0
8
+ suggested_hardware: l4x1
 
9
  app_port: 7860
10
  app_file: app.py
11
  models:
app.py CHANGED
@@ -157,10 +157,16 @@ with gr.Blocks() as demo:
157
  <a href="https://github.com/THUDM/CogVideo">🌐 Github</a> |
158
  <a href="https://arxiv.org/pdf/2408.06072">📜 arxiv </a>
159
  </div>
160
-
 
 
 
 
 
161
  <div style="text-align: center; font-size: 15px; font-weight: bold; color: red; margin-bottom: 20px;">
162
  ⚠️ This demo is for academic research and experiential use only.
163
  </div>
 
164
  """)
165
  with gr.Row():
166
  with gr.Column():
@@ -309,4 +315,5 @@ with gr.Blocks() as demo:
309
  enhance_button.click(enhance_prompt_func, inputs=[prompt], outputs=[prompt])
310
 
311
  if __name__ == "__main__":
 
312
  demo.launch()
 
157
  <a href="https://github.com/THUDM/CogVideo">🌐 Github</a> |
158
  <a href="https://arxiv.org/pdf/2408.06072">📜 arxiv </a>
159
  </div>
160
+ <div style="text-align: center;display: flex;justify-content: center;align-items: center;margin-top: 1em;margin-bottom: .5em;">
161
+ <span>If the Space is too busy, duplicate it to use privately</span>
162
+ <a href="https://huggingface.co/spaces/THUDM/CogVideoX-5B-Space?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-lg.svg" width="160" style="
163
+ margin-left: .75em;
164
+ "></a>
165
+ </div>
166
  <div style="text-align: center; font-size: 15px; font-weight: bold; color: red; margin-bottom: 20px;">
167
  ⚠️ This demo is for academic research and experiential use only.
168
  </div>
169
+
170
  """)
171
  with gr.Row():
172
  with gr.Column():
 
315
  enhance_button.click(enhance_prompt_func, inputs=[prompt], outputs=[prompt])
316
 
317
  if __name__ == "__main__":
318
+ demo.queue(max_size=15)
319
  demo.launch()