Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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='
|
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 |
)
|