ford442 commited on
Commit
7acc84e
1 Parent(s): 6e9372a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,6 +37,8 @@ torch.backends.cuda.preferred_linalg_library="cusolver"
37
 
38
  torch.set_float32_matmul_precision("highest")
39
 
 
 
40
  # Load Hugging Face token if needed
41
  hf_token = os.getenv("HF_TOKEN")
42
  openai_api_key = os.getenv("OPENAI_API_KEY")
@@ -302,8 +304,6 @@ def generate_video_from_text(
302
  torch.cuda.empty_cache()
303
  return output_path
304
 
305
- MAX_SEED = np.iinfo(np.int64).max
306
-
307
  @spaces.GPU(duration=80)
308
  def generate_video_from_image(
309
  image_path,
 
37
 
38
  torch.set_float32_matmul_precision("highest")
39
 
40
+ MAX_SEED = np.iinfo(np.int64).max
41
+
42
  # Load Hugging Face token if needed
43
  hf_token = os.getenv("HF_TOKEN")
44
  openai_api_key = os.getenv("OPENAI_API_KEY")
 
304
  torch.cuda.empty_cache()
305
  return output_path
306
 
 
 
307
  @spaces.GPU(duration=80)
308
  def generate_video_from_image(
309
  image_path,