ML-INTA commited on
Commit
8127009
·
1 Parent(s): 8f008ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def ia_imagenes(modelo, prompt, prompt_negativo, uploaded_file, my_strength, my_
45
  revision="fp16" if not torch.cuda.is_available() else "fp32",
46
  torch_dtype=torch.float16 if not torch.cuda.is_available() else torch.float32,
47
  requires_safety_checker = False
48
- ).to("cuda")
49
 
50
 
51
  image_pipe = pipe(prompt, negative_prompt=prompt_negativo, width=728, height=728) #otras variables: guidance_scale=guidance_scale, num_inference_steps=steps, callback = pipe_callback
 
45
  revision="fp16" if not torch.cuda.is_available() else "fp32",
46
  torch_dtype=torch.float16 if not torch.cuda.is_available() else torch.float32,
47
  requires_safety_checker = False
48
+ ).to("cpu")
49
 
50
 
51
  image_pipe = pipe(prompt, negative_prompt=prompt_negativo, width=728, height=728) #otras variables: guidance_scale=guidance_scale, num_inference_steps=steps, callback = pipe_callback