cocktailpeanut commited on
Commit
3f80461
·
1 Parent(s): f4f5727
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -92,8 +92,10 @@ def generate(
92
  num_images_per_prompt: int = 2,
93
  # profile: gr.OAuthProfile | None = None,
94
  ) -> PIL.Image.Image:
95
- if previewer != None:
96
  previewer.eval().requires_grad_(False).to(device).to(dtype)
 
 
97
  prior_pipeline.to(device)
98
  decoder_pipeline.to(device)
99
 
 
92
  num_images_per_prompt: int = 2,
93
  # profile: gr.OAuthProfile | None = None,
94
  ) -> PIL.Image.Image:
95
+ try:
96
  previewer.eval().requires_grad_(False).to(device).to(dtype)
97
+ except:
98
+ print("")
99
  prior_pipeline.to(device)
100
  decoder_pipeline.to(device)
101