chasetank commited on
Commit
f13b070
1 Parent(s): 722ba3d

fix: minor update

Browse files
Files changed (1) hide show
  1. app.py +1 -20
app.py CHANGED
@@ -31,10 +31,6 @@ if not model_dir.exists():
31
  repo_type='model',
32
  local_dir=model_dir)
33
 
34
- DESCRIPTION = '# [ModelScope Text to Video Synthesis](https://modelscope.cn/models/damo/text-to-video-synthesis/summary)'
35
- if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
36
- 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>'
37
-
38
  pipe = pipeline('text-to-video-synthesis', model_dir.as_posix())
39
 
40
 
@@ -84,19 +80,4 @@ with gr.Blocks(css='style.css') as demo:
84
  prompt.submit(fn=generate, inputs=inputs, outputs=result)
85
  run_button.click(fn=generate, inputs=inputs, outputs=result)
86
 
87
- with gr.Accordion(label='Biases and content acknowledgment', open=False):
88
- gr.HTML("""<div class="acknowledgments">
89
- <h4>Biases and content acknowledgment</h4>
90
- <p>
91
- 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.
92
- </p>
93
- <p>
94
- 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. The model is meant for research purposes.
95
- </p>
96
- <p>
97
- 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>.
98
- </p>
99
- </div>
100
- """)
101
-
102
- demo.queue(api_open=False, max_size=15).launch()
 
31
  repo_type='model',
32
  local_dir=model_dir)
33
 
 
 
 
 
34
  pipe = pipeline('text-to-video-synthesis', model_dir.as_posix())
35
 
36
 
 
80
  prompt.submit(fn=generate, inputs=inputs, outputs=result)
81
  run_button.click(fn=generate, inputs=inputs, outputs=result)
82
 
83
+ demo.queue(api_open=False, max_size=15).launch()