multimodalart HF staff commited on
Commit
2c04935
1 Parent(s): 9bfefc5

Update gradio_app.py

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