hysts HF staff commited on
Commit
9699b30
1 Parent(s): 4b10937

Use the current head of master branch

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -16,8 +16,8 @@ if os.getenv('SYSTEM') == 'spaces':
16
  subprocess.run(shlex.split('pip uninstall -y modelscope'))
17
  subprocess.run(
18
  shlex.split(
19
- 'pip install git+https://github.com/modelscope/modelscope.git@refs/pull/207/head'
20
- ))
21
 
22
  from modelscope.outputs import OutputKeys
23
  from modelscope.pipelines import pipeline
@@ -75,9 +75,8 @@ with gr.Blocks(css='style.css') as demo:
75
  prompt.submit(fn=generate, inputs=inputs, outputs=result)
76
  run_button.click(fn=generate, inputs=inputs, outputs=result)
77
 
78
- with gr.Accordion(label="Biases and content acknowledgment", open=False):
79
- gr.HTML(
80
- """<div class="acknowledgments">
81
  <h4>Biases and content acknowledgment</h4>
82
  <p>
83
  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.
@@ -89,7 +88,6 @@ with gr.Blocks(css='style.css') as demo:
89
  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>.
90
  </p>
91
  </div>
92
- """
93
- )
94
 
95
  demo.queue(api_open=False, max_size=15).launch()
 
16
  subprocess.run(shlex.split('pip uninstall -y modelscope'))
17
  subprocess.run(
18
  shlex.split(
19
+ 'pip install git+https://github.com/modelscope/modelscope@fe67395')
20
+ )
21
 
22
  from modelscope.outputs import OutputKeys
23
  from modelscope.pipelines import pipeline
 
75
  prompt.submit(fn=generate, inputs=inputs, outputs=result)
76
  run_button.click(fn=generate, inputs=inputs, outputs=result)
77
 
78
+ with gr.Accordion(label='Biases and content acknowledgment', open=False):
79
+ gr.HTML("""<div class="acknowledgments">
 
80
  <h4>Biases and content acknowledgment</h4>
81
  <p>
82
  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.
 
88
  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>.
89
  </p>
90
  </div>
91
+ """)
 
92
 
93
  demo.queue(api_open=False, max_size=15).launch()