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