Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,8 @@ class ModelWrapper:
|
|
| 79 |
|
| 80 |
@spaces.GPU()
|
| 81 |
def sample(self, noise, unet_added_conditions, prompt_embed, fast_vae_decode):
|
| 82 |
-
alphas_cumprod = self.scheduler.alphas_cumprod.to(self.device)
|
|
|
|
| 83 |
if self.num_step == 1:
|
| 84 |
all_timesteps = [self.conditioning_timestep]
|
| 85 |
step_interval = 0
|
|
|
|
| 79 |
|
| 80 |
@spaces.GPU()
|
| 81 |
def sample(self, noise, unet_added_conditions, prompt_embed, fast_vae_decode):
|
| 82 |
+
#alphas_cumprod = self.scheduler.alphas_cumprod.to(self.device)
|
| 83 |
+
print("sampling...")
|
| 84 |
if self.num_step == 1:
|
| 85 |
all_timesteps = [self.conditioning_timestep]
|
| 86 |
step_interval = 0
|