ruslanmv commited on
Commit
a1316a9
·
verified ·
1 Parent(s): 11298af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,7 @@ device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
47
  model.to(device)
48
  print(device)
49
 
50
- #@spaces.GPU(duration=60 * 3)
51
  def get_output_video(text):
52
  inputs = tokenizer(text,
53
  max_length=1024,
@@ -66,6 +66,7 @@ def get_output_video(text):
66
  Set the device to either "cuda" or "cpu". Once everything has finished initializing,
67
  float32 is faster than float16 but uses more GPU memory.
68
  '''
 
69
  def generate_image(
70
  is_mega: bool,
71
  text: str,
 
47
  model.to(device)
48
  print(device)
49
 
50
+
51
  def get_output_video(text):
52
  inputs = tokenizer(text,
53
  max_length=1024,
 
66
  Set the device to either "cuda" or "cpu". Once everything has finished initializing,
67
  float32 is faster than float16 but uses more GPU memory.
68
  '''
69
+ @spaces.GPU(duration=60 * 3)
70
  def generate_image(
71
  is_mega: bool,
72
  text: str,