ford442 commited on
Commit
79ebb83
·
verified ·
1 Parent(s): 4a0076c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def infer(
118
  progress=gr.Progress(track_tqdm=True),
119
  ):
120
  seed = random.randint(0, MAX_SEED)
121
- generator = torch.Generator(device='cpu').manual_seed(seed)
122
  system_prompt_rewrite = (
123
  "You are an AI assistant that rewrites image prompts to be more descriptive and detailed."
124
  )
 
118
  progress=gr.Progress(track_tqdm=True),
119
  ):
120
  seed = random.randint(0, MAX_SEED)
121
+ generator = torch.Generator(device='cuda').manual_seed(seed)
122
  system_prompt_rewrite = (
123
  "You are an AI assistant that rewrites image prompts to be more descriptive and detailed."
124
  )