ford442 commited on
Commit
3e23e24
·
verified ·
1 Parent(s): aa3e2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -103,8 +103,7 @@ def infer(
103
  progress=gr.Progress(track_tqdm=True),
104
  ):
105
  seed = random.randint(0, MAX_SEED)
106
- generator = torch.Generator(device='cuda').manual_seed(seed)
107
-
108
  system_prompt_rewrite = (
109
  "You are an AI assistant that rewrites image prompts to be more descriptive and detailed."
110
  )
 
103
  progress=gr.Progress(track_tqdm=True),
104
  ):
105
  seed = random.randint(0, MAX_SEED)
106
+ generator = torch.Generator(device='cpu').manual_seed(seed)
 
107
  system_prompt_rewrite = (
108
  "You are an AI assistant that rewrites image prompts to be more descriptive and detailed."
109
  )