add bias section to top and display

#9
by akhaliq HF staff - opened
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -52,6 +52,20 @@ examples = [
52
  ]
53
 
54
  with gr.Blocks(css='style.css') as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  gr.Markdown(DESCRIPTION)
56
  with gr.Group():
57
  with gr.Box():
@@ -84,19 +98,6 @@ 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()
52
  ]
53
 
54
  with gr.Blocks(css='style.css') as demo:
55
+ with gr.Accordion(label='Biases and content acknowledgment', open=True):
56
+ gr.HTML("""<div class="acknowledgments">
57
+ <h4>Biases and content acknowledgment</h4>
58
+ <p>
59
+ 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.
60
+ </p>
61
+ <p>
62
+ 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.
63
+ </p>
64
+ <p>
65
+ 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>.
66
+ </p>
67
+ </div>
68
+ """)
69
  gr.Markdown(DESCRIPTION)
70
  with gr.Group():
71
  with gr.Box():
98
  prompt.submit(fn=generate, inputs=inputs, outputs=result)
99
  run_button.click(fn=generate, inputs=inputs, outputs=result)
100
 
101
+
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
  demo.queue(api_open=False, max_size=15).launch()