Martim-Ramos-Neural commited on
Commit
a7c2aac
·
1 Parent(s): d7630b8
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -1,5 +1,4 @@
1
- import spaces # Import ZeroGPU compatibility module
2
- import torch
3
  import imageio
4
  import os
5
  import gradio as gr
@@ -15,9 +14,6 @@ from huggingface_hub import snapshot_download
15
  weights_dir = './allegro_weights'
16
  os.makedirs(weights_dir, exist_ok=True)
17
 
18
-
19
- # Download the necessary model files if not in shared UI
20
-
21
  print(f"Downloading models to {weights_dir}...")
22
  snapshot_download(
23
  repo_id='rhymes-ai/Allegro',
@@ -107,9 +103,9 @@ def process_pipeline(user_prompt, guidance_scale, num_sampling_steps, seed, enab
107
  out_video = allegro_pipeline(
108
  user_prompt,
109
  negative_prompt=negative_prompt,
110
- num_frames=88,
111
- height=720,
112
- width=1280,
113
  num_inference_steps=num_sampling_steps,
114
  guidance_scale=guidance_scale,
115
  max_sequence_length=512,
 
1
+ import spaces
 
2
  import imageio
3
  import os
4
  import gradio as gr
 
14
  weights_dir = './allegro_weights'
15
  os.makedirs(weights_dir, exist_ok=True)
16
 
 
 
 
17
  print(f"Downloading models to {weights_dir}...")
18
  snapshot_download(
19
  repo_id='rhymes-ai/Allegro',
 
103
  out_video = allegro_pipeline(
104
  user_prompt,
105
  negative_prompt=negative_prompt,
106
+ num_frames=30,
107
+ height=360,
108
+ width=640,
109
  num_inference_steps=num_sampling_steps,
110
  guidance_scale=guidance_scale,
111
  max_sequence_length=512,