ovi054 commited on
Commit
6d75076
·
verified ·
1 Parent(s): 8b8a5f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
  import os
9
 
10
 
11
- device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
13
  # model_id = "hunyuanvideo-community/HunyuanVideo"
14
 
@@ -33,7 +33,7 @@ def generate(prompt, width=832, height=832, num_inference_steps=30, lora_id=None
33
  # pipe,
34
  # # residual_diff_threshold=0.2,
35
  # )
36
- # pipe.to("cuda")
37
  torch.cuda.empty_cache()
38
  try:
39
  output = pipe(
 
8
  import os
9
 
10
 
11
+ # device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
13
  # model_id = "hunyuanvideo-community/HunyuanVideo"
14
 
 
33
  # pipe,
34
  # # residual_diff_threshold=0.2,
35
  # )
36
+ pipe.to("cuda")
37
  torch.cuda.empty_cache()
38
  try:
39
  output = pipe(