multimodalart HF Staff commited on
Commit
268cc78
·
1 Parent(s): 8a9d435

Raise CPU-task parallelism: assists uncapped, share videos 16 (#6)

Browse files

- Raise CPU-task parallelism: assists uncapped, share videos 16 (08406e757ec9f2b0382e37b65cd7356c3ff67d1a)

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1623,7 +1623,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
1623
  [player, stats, wav_state, seed, composer, video_title],
1624
  concurrency_limit=None, show_progress="minimal",
1625
  )
1626
- ev_simple.then(render_video, [wav_state, video_title], video_out, concurrency_limit=4).then(
1627
  lambda s: s.replace(" — rendering share video...", " — share video ready."), stats, stats
1628
  )
1629
 
@@ -1632,7 +1632,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
1632
  [player, stats, wav_state, seed, video_title],
1633
  concurrency_limit=None, show_progress="minimal",
1634
  )
1635
- ev_studio.then(render_video, [wav_state, video_title], video_out, concurrency_limit=4).then(
1636
  lambda s: s.replace(" — rendering share video...", " — share video ready."), stats, stats
1637
  )
1638
 
@@ -1641,7 +1641,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
1641
  cancels=[ev_simple, ev_studio], show_progress="hidden",
1642
  )
1643
 
1644
- composer.edit(compose_assist, [composer, duration], [composer, stats], concurrency_limit=8, show_progress="minimal")
1645
 
1646
  composer.apply(load_example, [composer], [composer, player, stats, video_out, wav_state, video_title], concurrency_limit=None, show_progress="minimal")
1647
 
 
1623
  [player, stats, wav_state, seed, composer, video_title],
1624
  concurrency_limit=None, show_progress="minimal",
1625
  )
1626
+ ev_simple.then(render_video, [wav_state, video_title], video_out, concurrency_limit=16).then(
1627
  lambda s: s.replace(" — rendering share video...", " — share video ready."), stats, stats
1628
  )
1629
 
 
1632
  [player, stats, wav_state, seed, video_title],
1633
  concurrency_limit=None, show_progress="minimal",
1634
  )
1635
+ ev_studio.then(render_video, [wav_state, video_title], video_out, concurrency_limit=16).then(
1636
  lambda s: s.replace(" — rendering share video...", " — share video ready."), stats, stats
1637
  )
1638
 
 
1641
  cancels=[ev_simple, ev_studio], show_progress="hidden",
1642
  )
1643
 
1644
+ composer.edit(compose_assist, [composer, duration], [composer, stats], concurrency_limit=None, show_progress="minimal")
1645
 
1646
  composer.apply(load_example, [composer], [composer, player, stats, video_out, wav_state, video_title], concurrency_limit=None, show_progress="minimal")
1647