multimodalart HF staff commited on
Commit
d12a1cf
1 Parent(s): 243a898

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -24,7 +24,7 @@ def dynamicrafter_demo(result_dir='./tmp/', res=512):
24
  else:
25
  raise NotImplementedError(f"Unsupported resolution: {res}")
26
  image2video = Image2Video(result_dir, resolution=resolution)
27
- image2video.get_image = spaces.GPU(image2video.get_image)
28
 
29
  with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
30
  with gr.Tab(label='ToonCrafter_320x512'):
 
24
  else:
25
  raise NotImplementedError(f"Unsupported resolution: {res}")
26
  image2video = Image2Video(result_dir, resolution=resolution)
27
+ image2video.get_image = spaces.GPU(image2video.get_image, duration=120)
28
 
29
  with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
30
  with gr.Tab(label='ToonCrafter_320x512'):