tsqn commited on
Commit
b9a7927
1 Parent(s): a45ef62

chore: ZeroGPU

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gc
2
  import os
3
  import torch
 
4
  import gradio as gr
5
  from diffusers import LattePipeline
6
  from transformers import T5EncoderModel, BitsAndBytesConfig
@@ -32,6 +33,7 @@ def initialize_pipeline():
32
  )
33
  return pipe, text_encoder
34
 
 
35
  def generate_video(
36
  prompt: str,
37
  negative_prompt: str = "",
 
1
  import gc
2
  import os
3
  import torch
4
+ import spaces
5
  import gradio as gr
6
  from diffusers import LattePipeline
7
  from transformers import T5EncoderModel, BitsAndBytesConfig
 
33
  )
34
  return pipe, text_encoder
35
 
36
+ @spaces.GPU(duration=120)
37
  def generate_video(
38
  prompt: str,
39
  negative_prompt: str = "",