cybermark commited on
Commit
6b357fe
1 Parent(s): fde4797
Files changed (1) hide show
  1. app.py +2 -30
app.py CHANGED
@@ -12,11 +12,7 @@ import numpy as np
12
  import torch
13
  from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
14
 
15
- DESCRIPTION = '# [ModelScope Text to Video Synthesis](https://modelscope.cn/models/damo/text-to-video-synthesis/summary)'
16
- DESCRIPTION += '\n<p>For Colab usage, you can view <a href="https://colab.research.google.com/drive/1uW1ZqswkQ9Z9bp5Nbo5z59cAn7I0hE6R?usp=sharing" style="text-decoration: underline;" target="_blank">this webpage</a>.(the latest update on 2023.03.21)</p>'
17
- DESCRIPTION += '\n<p>This model can only be used for non-commercial purposes. To learn more about the model, take a look at the <a href="https://huggingface.co/damo-vilab/modelscope-damo-text-to-video-synthesis" style="text-decoration: underline;" target="_blank">model card</a>.</p>'
18
- if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
19
- DESCRIPTION += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
20
 
21
  MAX_NUM_FRAMES = int(os.getenv('MAX_NUM_FRAMES', '200'))
22
  DEFAULT_NUM_FRAMES = min(MAX_NUM_FRAMES,
@@ -110,31 +106,7 @@ with gr.Blocks(css='style.css') as demo:
110
  run_button.click(fn=generate, inputs=inputs, outputs=result)
111
 
112
 
113
- with gr.Accordion(label='We are hiring(Based in Beijing / Hangzhou, China.)', open=False):
114
- gr.HTML("""<div class="acknowledgments">
115
- <p>
116
- If you're looking for an exciting challenge and the opportunity to work with cutting-edge technologies in AIGC and large-scale pretraining, then we are the place for you. We are looking for talented, motivated and creative individuals to join our team. If you are interested, please send your CV to us.
117
- </p>
118
- <p>
119
- <b>EMAIL: yingya.zyy@alibaba-inc.com</b>.
120
- </p>
121
- </div>
122
- """)
123
-
124
- with gr.Accordion(label='Biases and content acknowledgment', open=False):
125
- gr.HTML("""<div class="acknowledgments">
126
- <h4>Biases and content acknowledgment</h4>
127
- <p>
128
- Despite how impressive being able to turn text into video is, beware to the fact that this model may output content that reinforces or exacerbates societal biases. The training data includes LAION5B, ImageNet, Webvid and other public datasets. The model was not trained to realistically represent people or events, so using it to generate such content is beyond the model's capabilities.
129
- </p>
130
- <p>
131
- It is not intended to generate content that is demeaning or harmful to people or their environment, culture, religion, etc. Similarly, it is not allowed to generate pornographic, violent and bloody content generation. <b>The model is meant for research purposes</b>.
132
- </p>
133
- <p>
134
- To learn more about the model, head to its <a href="https://huggingface.co/damo-vilab/modelscope-damo-text-to-video-synthesis" style="text-decoration: underline;" target="_blank">model card</a>.
135
- </p>
136
- </div>
137
- """)
138
 
139
 
140
  demo.queue(api_open=False, max_size=15).launch()
 
12
  import torch
13
  from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
14
 
15
+
 
 
 
 
16
 
17
  MAX_NUM_FRAMES = int(os.getenv('MAX_NUM_FRAMES', '200'))
18
  DEFAULT_NUM_FRAMES = min(MAX_NUM_FRAMES,
 
106
  run_button.click(fn=generate, inputs=inputs, outputs=result)
107
 
108
 
109
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
 
112
  demo.queue(api_open=False, max_size=15).launch()