YaohuiW commited on
Commit
d0f9cf4
·
verified ·
1 Parent(s): 0cced99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,6 +18,7 @@ else:
18
  gen.load_state_dict(torch.hub.load_state_dict_from_url(f"https://huggingface.co/YaohuiW/LIA-X/resolve/main/lia-x.pt"))
19
  gen.eval()
20
 
 
21
 
22
  def load_file(path):
23
 
@@ -58,8 +59,8 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
58
  with gr.Tabs():
59
  from gradio_tabs.animation import animation
60
  from gradio_tabs.vid_edit import vid_edit
61
- animation(gen, device)
62
- vid_edit(gen, device)
63
 
64
 
65
  demo.launch(
 
18
  gen.load_state_dict(torch.hub.load_state_dict_from_url(f"https://huggingface.co/YaohuiW/LIA-X/resolve/main/lia-x.pt"))
19
  gen.eval()
20
 
21
+ chunk_size=16
22
 
23
  def load_file(path):
24
 
 
59
  with gr.Tabs():
60
  from gradio_tabs.animation import animation
61
  from gradio_tabs.vid_edit import vid_edit
62
+ animation(gen, chunk_size, device)
63
+ vid_edit(gen, chunk_size, device)
64
 
65
 
66
  demo.launch(