multimodalart HF staff commited on
Commit
81e06d6
1 Parent(s): d43a337

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,6 @@ if torch.cuda.is_available():
45
 
46
  if PREVIEW_IMAGES:
47
  previewer = Previewer()
48
- previewer.load_state_dict(torch.load("previewer/previewer_v1_100k.pt")["state_dict"])
49
 
50
  def callback_prior(i, t, latents):
51
  output = previewer(latents)
@@ -98,6 +97,8 @@ def generate(
98
  )
99
 
100
  if PREVIEW_IMAGES:
 
 
101
  for _ in range(len(DEFAULT_STAGE_C_TIMESTEPS)):
102
  r = next(prior_output)
103
  if isinstance(r, list):
 
45
 
46
  if PREVIEW_IMAGES:
47
  previewer = Previewer()
 
48
 
49
  def callback_prior(i, t, latents):
50
  output = previewer(latents)
 
97
  )
98
 
99
  if PREVIEW_IMAGES:
100
+ previewer.load_state_dict(torch.load("previewer/previewer_v1_100k.pt")["state_dict"])
101
+
102
  for _ in range(len(DEFAULT_STAGE_C_TIMESTEPS)):
103
  r = next(prior_output)
104
  if isinstance(r, list):