Manjushri commited on
Commit
3b68a53
·
verified ·
1 Parent(s): 5224440

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,9 +10,9 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
 
13
- def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed):
14
  generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
15
- progress=gr.Progress(track_tqdm=True)
16
  if Model == "PhotoReal":
17
  torch.cuda.empty_cache()
18
  pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1", torch_dtype=torch.float16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1")
 
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
 
13
+ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, progress=gr.Progress(track_tqdm=True)):
14
  generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
15
+
16
  if Model == "PhotoReal":
17
  torch.cuda.empty_cache()
18
  pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1", torch_dtype=torch.float16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1")